Skip to content

Commit 84c1ba0

Browse files
committed
TS: fix the fix
1 parent d839fcd commit 84c1ba0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) th
499499
Path sourcePath = sourceFile.toPath();
500500
if (!filesToExtract.contains(normalizePath(sourcePath)))
501501
continue;
502-
if (extractedFiles.add(sourcePath)) {
502+
if (!extractedFiles.contains(sourcePath)) {
503503
typeScriptFiles.add(sourcePath.toFile());
504504
}
505505
}
@@ -547,9 +547,8 @@ public void extractTypeScriptFiles(List<File> files, Set<Path> extractedFiles, F
547547
extractorState.getTypeScriptParser().prepareFiles(files);
548548
for (File f : files) {
549549
Path path = f.toPath();
550-
if (extractedFiles.add(path)) {
551-
extract(extractor, f.toPath());
552-
}
550+
extractedFiles.add(path);
551+
extract(extractor, f.toPath());
553552
}
554553
}
555554

0 commit comments

Comments
 (0)