From c4bc51b834a911f789068c92289c1d22ae2b2b5d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 20 Jan 2015 09:41:27 -0500 Subject: [PATCH] fixing installation script that broke with recent updates to groups --- src/install.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/install.js b/src/install.js index 91c55293e0..54fb075ced 100644 --- a/src/install.js +++ b/src/install.js @@ -268,11 +268,7 @@ function enableDefaultTheme(next) { function createAdministrator(next) { var Groups = require('./groups'); Groups.get('administrators', {}, function (err, groupObj) { - if (err) { - return next(err); - } - - if (groupObj && groupObj.memberCount > 0) { + if (!err && groupObj && groupObj.memberCount > 0) { winston.info('Administrator found, skipping Admin setup'); next(); } else {