Skip to content

Commit 4574eeb

Browse files
committed
fix: address review comments
1 parent e9d2fe2 commit 4574eeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ const mime = new Mime(standardMimes, otherMimes).define(
247247
true,
248248
);
249249

250+
// Detect whether file is binary from its MIME type, or if not available, contents
250251
const getSourceFileFormat = (filePath: string, fileContent: Buffer) => {
251252
// Try to detect the MIME type from the file path
252253
const contentType = mime.getType(filePath);

0 commit comments

Comments
 (0)