From 62f8d945e1e32727d8905b0e3eff4854a3b47e10 Mon Sep 17 00:00:00 2001 From: Simon Rask <33556894+SimonRask@users.noreply.github.com> Date: Thu, 8 Oct 2020 10:57:45 +0200 Subject: fix(cli/fs) Small change in filter expression (#7865) --- cli/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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() } -- cgit v1.2.3