From 629549910d46ac0d4331da2db00772560ba0ba6b Mon Sep 17 00:00:00 2001 From: Hippo Date: Fri, 3 Jan 2020 16:04:25 +0530 Subject: [PATCH] Bugfix: double-negative in directory-creation check --- functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.js b/functions.js index 0efcc80..cdf7d31 100644 --- a/functions.js +++ b/functions.js @@ -365,7 +365,7 @@ const createDirIfNotExist = async (client, folder) => { console.debug(`Noting missing subdirectory: ${folder}`) // first, create the parent directory (if required) - if (!!await createDirIfNotExist(client, path.dirname(folder))) { + if (!await createDirIfNotExist(client, path.dirname(folder))) { // if not created, we fail too :-/ return false }