JS: Always sniff file type of TypeScript files

This commit is contained in:
Asger F
2022-06-27 13:48:00 +02:00
parent c72377cf2c
commit c082578688

View File

@@ -217,9 +217,6 @@ public class FileExtractor {
}
private boolean hasBadFileHeader(File f, String lcExt, ExtractorConfig config) {
if (!".ts".equals(lcExt)) {
return false;
}
try (FileInputStream fis = new FileInputStream(f)) {
byte[] bytes = new byte[fileHeaderSize];
int length = fis.read(bytes);