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)
|
.arg(command)
|
||||||
.stdout(stderr())
|
.stdout(stderr())
|
||||||
.stderr(Stdio::inherit())
|
.stderr(Stdio::inherit())
|
||||||
.spawn()
|
.status()
|
||||||
.expect("failed to execute process")
|
.expect("failed to execute process"),
|
||||||
.wait()
|
|
||||||
.unwrap(),
|
|
||||||
None => std::process::Command::new(shell)
|
None => std::process::Command::new(shell)
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
.arg(command)
|
.arg(command)
|
||||||
.stdout(stderr())
|
.stdout(stderr())
|
||||||
.stderr(Stdio::inherit())
|
.stderr(Stdio::inherit())
|
||||||
.spawn()
|
.status()
|
||||||
.expect("failed to execute process")
|
.expect("failed to execute process"),
|
||||||
.wait()
|
|
||||||
.unwrap(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue