mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 02:08:09 +00:00
ls: Fix clippy warning
This commit is contained in:
parent
ffb6b7152f
commit
4b3224dd82
1 changed files with 1 additions and 1 deletions
|
@ -1198,7 +1198,7 @@ fn list(locs: Vec<String>, config: Config) -> i32 {
|
|||
let p = PathBuf::from(&loc);
|
||||
let path_data = PathData::new(p, None, None, &config, true);
|
||||
|
||||
if !path_data.md().is_some() {
|
||||
if path_data.md().is_none() {
|
||||
show_error!("'{}': {}", &loc, "No such file or directory");
|
||||
/*
|
||||
We found an error, the return code of ls should not be 0
|
||||
|
|
Loading…
Reference in a new issue