From 88d32a6dcf3f1e39b9812d9462dd0f48a7341acf Mon Sep 17 00:00:00 2001 From: Bobby Date: Sat, 23 Apr 2022 04:48:59 +0700 Subject: [PATCH] refactor: uploadController.js --- controllers/uploadController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index f340b21..f532ab1 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -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 }