summaryrefslogtreecommitdiff
path: root/fs/walk.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fs/walk.ts')
-rw-r--r--fs/walk.ts6
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();