buffer : simpliciation de try_spawn
This commit is contained in:
parent
a48b6d734d
commit
96cbbc6857
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