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));