diff --git a/src/application/app.rs b/src/application/app.rs index dc3dcc7..b96fb92 100644 --- a/src/application/app.rs +++ b/src/application/app.rs @@ -177,22 +177,18 @@ impl<'a> App<'a> { #[cfg(target_os = "linux")] fn open_workspace(&mut self) { - match self.select_workspace() { - Some(workspace) => { - if workspace.location_type - == crate::domain::entity::workspace::WorkspaceLocation::Local - { - // Use cmd as program instead - // https://github.com/rust-lang/rust/issues/95957 - Command::new("bash") - .arg("-c") - .arg("code") - .arg(workspace.strip_decode_path()) - .spawn() - .expect("code command failed to start"); - } + if let Some(workspace) = self.select_workspace() { + if workspace.location_type == crate::domain::entity::workspace::WorkspaceLocation::Local + { + // Use cmd as program instead + // https://github.com/rust-lang/rust/issues/95957 + Command::new("bash") + .arg("-c") + .arg("code") + .arg(workspace.strip_decode_path()) + .spawn() + .expect("code command failed to start"); } - None => {} } }