fix inverted conditional

pull/1/head
ansuz 4 years ago
parent b62d4387a6
commit c2918ac888

@ -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];

Loading…
Cancel
Save