Skip to content

Commit

Permalink
Command chaining fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspwr committed May 13, 2023
1 parent 31a58e7 commit 3effde9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ pub fn compile(job: Job) -> Result<(), String> {

fn wait_for_child(child: &mut Result<std::process::Child, std::io::Error>) -> bool {
if let Ok(child) = child {
if let Ok(status) = child.try_wait() {
if let Some(status) = status {
return status.success();
}
if let Ok(status) = child.wait() {
return status.success();
}
}
false
Expand Down

0 comments on commit 3effde9

Please sign in to comment.