diff --git a/runtime/src/qdrant_edge_database.rs b/runtime/src/qdrant_edge_database.rs index 0c495cb4..26ae04fe 100644 --- a/runtime/src/qdrant_edge_database.rs +++ b/runtime/src/qdrant_edge_database.rs @@ -402,12 +402,11 @@ fn remove_obsolete_qdrant_sidecar_files(app_handle: &tauri::A cfg_if::cfg_if! { if #[cfg(any(target_os = "windows", target_os = "macos"))]{ - if let Ok(current_exe) = std::env::current_exe() && let Some(exe_dir) = current_exe.parent() { - if exe_dir.to_string_lossy().contains("MindWork AI Studio") { - paths.push(exe_dir.join("target").join("databases").join("qdrant")); - paths.push(exe_dir.join("qdrant.exe")); - paths.push(exe_dir.join("qdrant")); - } + if let Ok(current_exe) = std::env::current_exe() && let Some(exe_dir) = current_exe.parent() + && exe_dir.to_string_lossy().contains("MindWork AI Studio") { + paths.push(exe_dir.join("target").join("databases").join("qdrant")); + paths.push(exe_dir.join("qdrant.exe")); + paths.push(exe_dir.join("qdrant")); } } }