buffer : simpliciation de try_spawn

This commit is contained in:
Ahurac 2023-12-12 11:10:46 +01:00
parent a48b6d734d
commit 96cbbc6857

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
} }
} }