diff --git a/cli/fs.rs b/cli/fs.rs index 2a05615b94..8298db6d86 100644 --- a/cli/fs.rs +++ b/cli/fs.rs @@ -116,6 +116,6 @@ where .into_iter() .filter_map(|e| e.ok()) .map(|e| e.path().to_owned()) - .filter(|p| if p.is_dir() { false } else { filter(&p) }) + .filter(|p| !p.is_dir() && filter(&p)) .collect() }