1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

fix(cli/fs) Small change in filter expression (#7865)

This commit is contained in:
Simon Rask 2020-10-08 10:57:45 +02:00 committed by GitHub
parent d8879feb8c
commit 62f8d945e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
}