From ce48670747c2509f2e2c34b77eef281d567e67f0 Mon Sep 17 00:00:00 2001 From: Paul Sori Date: Sat, 6 Jan 2018 02:57:35 -0500 Subject: [PATCH] Allow empty users in config.json --- modules/configure-json-file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/configure-json-file.js b/modules/configure-json-file.js index 847f52f..10ca354 100644 --- a/modules/configure-json-file.js +++ b/modules/configure-json-file.js @@ -41,8 +41,8 @@ exports.setup = function(loadJson, rootDir){ } } - if(!loadJson.users || typeof loadJson.users !== 'object'){ - errorArray.push('No Users'); + if(loadJson.users && typeof loadJson.users !== 'object'){ + errorArray.push('Users need to be an object'); loadJson.error = errorArray; return loadJson; }