TS: fix the fix

This commit is contained in:
Asger F
2018-11-16 14:39:43 +00:00
parent d839fcdafc
commit 84c1ba0b31

View File

@@ -499,7 +499,7 @@ public class AutoBuild {
Path sourcePath = sourceFile.toPath();
if (!filesToExtract.contains(normalizePath(sourcePath)))
continue;
if (extractedFiles.add(sourcePath)) {
if (!extractedFiles.contains(sourcePath)) {
typeScriptFiles.add(sourcePath.toFile());
}
}
@@ -547,9 +547,8 @@ public class AutoBuild {
extractorState.getTypeScriptParser().prepareFiles(files);
for (File f : files) {
Path path = f.toPath();
if (extractedFiles.add(path)) {
extract(extractor, f.toPath());
}
extractedFiles.add(path);
extract(extractor, f.toPath());
}
}