summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/fs.rs b/cli/fs.rs
index 2a05615b9..8298db6d8 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()
}