summaryrefslogtreecommitdiff
path: root/std/fs/walk.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/fs/walk.ts')
-rw-r--r--std/fs/walk.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/std/fs/walk.ts b/std/fs/walk.ts
index efc54bc23..60eb9b483 100644
--- a/std/fs/walk.ts
+++ b/std/fs/walk.ts
@@ -21,13 +21,11 @@ function patternTest(patterns: RegExp[], path: string): boolean {
// Forced to reset last index on regex while iterating for have
// consistent results.
// See: https://stackoverflow.com/a/1520853
- return patterns.some(
- (pattern): boolean => {
- const r = pattern.test(path);
- pattern.lastIndex = 0;
- return r;
- }
- );
+ return patterns.some((pattern): boolean => {
+ const r = pattern.test(path);
+ pattern.lastIndex = 0;
+ return r;
+ });
}
function include(filename: string, options: WalkOptions): boolean {