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:
Ahurac 2023-12-12 13:02:34 +01:00
commit a7be32f9e1

View file

@ -41,15 +41,13 @@ impl Buffer {
if result.code().is_some() { if result.code().is_some() {
return Some(result.code().unwrap()); return Some(result.code().unwrap());
} else {
None
} }
} else { } else {
eprintln!("{}", result.unwrap_err()); eprintln!("{}", result.unwrap_err());
return Some(127); return Some(127);
} }
} else { }
return None;
} None
} }
} }