diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-10-06 01:02:34 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-10-05 12:02:34 -0400 |
commit | 96fe2d10a4da0521b7cd72d90fd42121f9311978 (patch) | |
tree | cb4d5ecafa55a3a522cf0ad9d742fb6a1e1f2283 /fs/walk.ts | |
parent | 2f90225c89926932a34eb40758e2af0d1742e1f8 (diff) |
Update eslint and @typescript-eslint (denoland/deno_std#621)
Original: https://github.com/denoland/deno_std/commit/c3fe858f98565edbe8faeb3cf2e5b873304f4f6e
Diffstat (limited to 'fs/walk.ts')
-rw-r--r-- | fs/walk.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/walk.ts b/fs/walk.ts index 583b4dd55..4808598af 100644 --- a/fs/walk.ts +++ b/fs/walk.ts @@ -22,7 +22,7 @@ function patternTest(patterns: RegExp[], path: string): boolean { // consistent results. // See: https://stackoverflow.com/a/1520853 return patterns.some((pattern): boolean => { - let r = pattern.test(path); + const r = pattern.test(path); pattern.lastIndex = 0; return r; }); @@ -100,7 +100,7 @@ export async function* walk( options.onError(err); } } - for (let info of ls) { + for (const info of ls) { if (info.isSymlink()) { if (options.followSymlinks) { // TODO(ry) Re-enable followSymlinks. @@ -154,7 +154,7 @@ export function* walkSync( options.onError(err); } } - for (let info of ls) { + for (const info of ls) { if (info.isSymlink()) { if (options.followSymlinks) { unimplemented(); |