mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-17 16:53:51 +01:00
chore: remove useless code
This commit is contained in:
parent
1454a4b992
commit
b50ba9eeba
1 changed files with 4 additions and 8 deletions
|
|
@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue