From c2918ac888f14c3602e745a971c67c784860d748 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 6 Oct 2020 18:52:48 +0530 Subject: [PATCH] fix inverted conditional --- lib/decrees.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decrees.js b/lib/decrees.js index 5f1bdaa47..6c1242285 100644 --- a/lib/decrees.js +++ b/lib/decrees.js @@ -62,7 +62,7 @@ var isNonNegativeNumber = function (n) { // CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['UPDATE_DEFAULT_STORAGE', [100 * 1024 * 1024]]], console.log) commands.UPDATE_DEFAULT_STORAGE = function (Env, args) { - if (!Array.isArray(args) || isNonNegativeNumber(args[0])) { + if (!Array.isArray(args) || !isNonNegativeNumber(args[0])) { throw new Error('INVALID_ARGS'); } var limit = args[0];