Merge pull request 'buffer : simpliciation de try_spawn
' (#6) from feature/exit_codes into main
Reviewed-on: https://gitea.ahur.ac/ahurac/rash/pulls/6
This commit is contained in:
commit
a7be32f9e1
1 changed files with 2 additions and 4 deletions
|
@ -41,15 +41,13 @@ impl Buffer {
|
|||
|
||||
if result.code().is_some() {
|
||||
return Some(result.code().unwrap());
|
||||
} else {
|
||||
None
|
||||
}
|
||||
} else {
|
||||
eprintln!("{}", result.unwrap_err());
|
||||
return Some(127);
|
||||
}
|
||||
} else {
|
||||
return None;
|
||||
}
|
||||
|
||||
None
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue