From 64428d97591853d44ca8fdeb8cf65e4800451c23 Mon Sep 17 00:00:00 2001 From: tycrek Date: Sun, 27 Jun 2021 10:51:13 -0600 Subject: [PATCH] Suppress DeepSource rule --- hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));