Suppress DeepSource rule

pull/20/head
tycrek 3 years ago
parent ce0264e467
commit 64428d9759
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

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

Loading…
Cancel
Save