chore: remove useless code

This commit is contained in:
iff 2024-12-08 02:17:43 +01:00
parent 1454a4b992
commit b50ba9eeba

View file

@ -305,19 +305,15 @@ pub fn run_suggestion(data: &Data, command: &str) -> std::process::ExitStatus {
.arg(command)
.stdout(stderr())
.stderr(Stdio::inherit())
.spawn()
.expect("failed to execute process")
.wait()
.unwrap(),
.status()
.expect("failed to execute process"),
None => std::process::Command::new(shell)
.arg("-c")
.arg(command)
.stdout(stderr())
.stderr(Stdio::inherit())
.spawn()
.expect("failed to execute process")
.wait()
.unwrap(),
.status()
.expect("failed to execute process"),
}
}