From 612f86cb128f99e10e7ef778922c51cf1f7c8d38 Mon Sep 17 00:00:00 2001 From: tycrek Date: Mon, 18 Apr 2022 10:19:28 -0600 Subject: [PATCH] Fixed incorrect type --- src/hash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash.ts b/src/hash.ts index acab229..a7c0fc2 100644 --- a/src/hash.ts +++ b/src/hash.ts @@ -12,5 +12,5 @@ export default (file: FileData): Promise => toArray((fs.createReadStream(file.path))) .then((parts: any[]) => Buffer.concat(parts.map((part: any) => (Buffer.isBuffer(part) ? part : Buffer.from(part))))) .then((buf: Buffer) => crypto.createHash('sha1').update(buf).digest('hex')) // skipcq: JS-D003 - .then((hash: String) => log.debug(`Hash for ${file.originalname}`, hash, 'SHA1, hex').callback(resolve, hash)) + .then((hash: string) => log.debug(`Hash for ${file.originalname}`, hash, 'SHA1, hex').callback(resolve, hash)) .catch(reject));