From d1a3935edba1529cb34d9d011ae23c1c610f19c0 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Sat, 8 Dec 2018 07:38:42 +0700 Subject: [PATCH] Updated uploadController.js --- controllers/uploadController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 9a3856b..aab7f74 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -127,7 +127,7 @@ uploadsController.getUniqueRandomName = (length, extension, set) => { // console.log(`Added ${identifier} to identifiers cache`) return resolve(identifier + extension) } else { - // Less stricter collision check, as the same identifier + // Less stricter collision check, as in the same identifier // can be used by multiple different extensions const name = identifier + extension fs.access(path.join(uploadsDir, name), error => {