mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
commit
72299d3e16
4 changed files with 5 additions and 5 deletions
|
@ -408,7 +408,7 @@ impl CmdResult {
|
|||
|
||||
/// Returns whether the program succeeded
|
||||
pub fn succeeded(&self) -> bool {
|
||||
self.exit_status.map_or(true, |e| e.success())
|
||||
self.exit_status.is_none_or(|e| e.success())
|
||||
}
|
||||
|
||||
/// asserts that the command resulted in a success (zero) status code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue