summaryrefslogtreecommitdiff
path: root/fs/walk.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fs/walk.ts')
-rw-r--r--fs/walk.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/walk.ts b/fs/walk.ts
index 4520fe174..cce3bad64 100644
--- a/fs/walk.ts
+++ b/fs/walk.ts
@@ -19,13 +19,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 => {
- let r = pattern.test(path);
- pattern.lastIndex = 0;
- return r;
- }
- );
+ return patterns.some((pattern): boolean => {
+ let r = pattern.test(path);
+ pattern.lastIndex = 0;
+ return r;
+ });
}
function include(filename: string, options: WalkOptions): boolean {