diff --git a/hash.js b/hash.js index efc8ded..47e0d84 100644 --- a/hash.js +++ b/hash.js @@ -8,6 +8,6 @@ module.exports = (file) => new Promise((resolve, reject) => toArray((fs.createReadStream(s3enabled ? path(diskFilePath, file.originalname) : path(file.path)))) .then((parts) => Buffer.concat(parts.map((part) => (Buffer.isBuffer(part) ? part : Buffer.from(part))))) - .then((buf) => crypto.createHash('sha1').update(buf).digest('hex')) + .then((buf) => crypto.createHash('sha1').update(buf).digest('hex')) // skipcq: JS-D003 .then(resolve) .catch(reject));