Skip to content

Commit cdc69c0

Browse files
committed
fix: fix linter issues
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
1 parent 9b3de10 commit cdc69c0

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

lib/helper.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
import { isReadable } from 'isstream';
1818
import { lookup } from 'mime-types';
1919
import { basename } from 'path';
20-
import { loadEsm } from "load-esm";
20+
import { loadEsm } from 'load-esm';
2121
import logger from './logger';
2222

23-
2423
export interface FileObject {
2524
value: NodeJS.ReadableStream | Buffer | string;
2625
options?: FileOptions;
@@ -78,14 +77,10 @@ export async function getContentType(inputData: NodeJS.ReadableStream | Buffer):
7877
// if the inputData is a Buffer
7978
try {
8079
// Import a pure ESM package from a CommonJS TS project
81-
const { fileTypeFromBuffer } = await loadEsm<typeof import("file-type")>(
82-
"file-type"
83-
);
84-
80+
const { fileTypeFromBuffer } = await loadEsm<typeof import('file-type')>('file-type');
8581
contentType = await fileTypeFromBuffer(inputData);
86-
logger.debug(contentType);
8782
} catch (error) {
88-
logger.debug("Error importing module:", error);
83+
logger.debug('Error importing module:', error);
8984
}
9085
}
9186

0 commit comments

Comments
 (0)