Skip to content

Commit b5d393b

Browse files
committed
fix: fix clippy error
1 parent b129311 commit b5d393b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src-tauri/src/cmd/config.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ pub async fn save_settings_and_restart(
7676
Some(settings.openlist.data_dir.as_str())
7777
};
7878
update_data_config(settings.openlist.port, data_dir)?;
79-
if let Ok(info) = get_openlist_core_process_status().await {
80-
if info.is_running {
81-
restart_openlist_core(state.clone()).await?;
82-
}
79+
if let Ok(info) = get_openlist_core_process_status().await
80+
&& info.is_running
81+
{
82+
restart_openlist_core(state.clone()).await?;
8383
}
84+
8485
Ok(true)
8586
}
8687

0 commit comments

Comments
 (0)