mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
fix(cli/fs) Small change in filter expression (#7865)
This commit is contained in:
parent
d8879feb8c
commit
62f8d945e1
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue