refactor: uploadController.js

This commit is contained in:
Bobby 2022-04-23 04:48:59 +07:00
parent 86c26cb50c
commit 88d32a6dcf
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -655,7 +655,7 @@ self.scanHelpers.assertFileBypass = data => {
return true
}
if (Number.isFinite(data.size) && utils.scan.maxSize && data.size > utils.scan.maxSize) {
if (utils.scan.maxSize && Number.isFinite(data.size) && data.size > utils.scan.maxSize) {
logger.debug(`[ClamAV]: ${data.filename}: Skipped, size ${data.size} > ${utils.scan.maxSize}`)
return true
}