Skip to content

Commit 4f54c6c

Browse files
author
Andy Hanson
committed
Fix loop over array to use for-of instead of for-in
1 parent 3f1ec7a commit 4f54c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/harness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ namespace Harness {
750750

751751
export function readDirectory(path: string, extension?: string[], exclude?: string[], include?: string[]) {
752752
const fs = new Utils.VirtualFileSystem(path, useCaseSensitiveFileNames());
753-
for (const file in listFiles(path)) {
753+
for (const file of listFiles(path)) {
754754
fs.addFile(file);
755755
}
756756
return ts.matchFiles(path, extension, exclude, include, useCaseSensitiveFileNames(), getCurrentDirectory(), path => {

0 commit comments

Comments
 (0)