There was an error while loading. Please reload this page.
1 parent 2a8b765 commit 9d55baeCopy full SHA for 9d55bae
1 file changed
desktop/src-tauri/src/managed_agents/discovery.rs
@@ -229,11 +229,9 @@ fn command_search_dirs(app: Option<&AppHandle>) -> Vec<PathBuf> {
229
dirs.push(current_dir.join("target/debug"));
230
}
231
232
- if app.is_some() {
233
- if let Ok(exe_path) = std::env::current_exe() {
234
- if let Some(parent) = exe_path.parent() {
235
- dirs.push(parent.to_path_buf());
236
- }
+ if let Ok(exe_path) = std::env::current_exe() {
+ if let Some(parent) = exe_path.parent() {
+ dirs.push(parent.to_path_buf());
237
238
239
0 commit comments