Skip to content

Commit c082578

Browse files
committed
JS: Always sniff file type of TypeScript files
1 parent c72377c commit c082578

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,6 @@ protected boolean contains(File f, String lcExt, ExtractorConfig config) {
217217
}
218218

219219
private boolean hasBadFileHeader(File f, String lcExt, ExtractorConfig config) {
220-
if (!".ts".equals(lcExt)) {
221-
return false;
222-
}
223220
try (FileInputStream fis = new FileInputStream(f)) {
224221
byte[] bytes = new byte[fileHeaderSize];
225222
int length = fis.read(bytes);

0 commit comments

Comments
 (0)