fix(config-sync): satisfy clippy warnings

This commit is contained in:
objz committed 2026-07-10 16:20:03 +02:00
1 parent 269814945d
commit 4576da4551
2 files changed
+10 -10

No files matched your search

+5 -5
View File
@@ -793,14 +793,14 @@ pub async fn launch(
let _ = parser_task.await;
tracing::info!("[{}] Exited with code {:?}", name_for_task, code);
if config_sync_active {
if let Err(e) = crate::instance::config_sync::finish(
if config_sync_active
&& let Err(e) = crate::instance::config_sync::finish(
config_sync_profile.as_deref(),
&meta_dir_owned,
&minecraft_dir_owned,
) {
tracing::warn!("Failed to sync config for '{}': {}", name_for_task, e);
}
)
{
tracing::warn!("Failed to sync config for '{}': {}", name_for_task, e);
}
drop(config_sync_lock);