From 28f186d4a73f770c3b87fb948fd81d1c700fecc3 Mon Sep 17 00:00:00 2001 From: Ian Forsey Date: Sat, 22 Mar 2014 00:34:12 +0000 Subject: [PATCH] Fix syntax error --- src/install.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/install.js b/src/install.js index 94e22f2582..2ce069656a 100644 --- a/src/install.js +++ b/src/install.js @@ -290,14 +290,13 @@ var async = require('async'), function (next) { // Check if an administrator needs to be created var Groups = require('./groups'); - Groups.get('administrators', {}, function (err, groupObj) { - if (groupObj.memberCount > 0) { - winston.info('Administrator found, skipping Admin setup'); - next(); - } else { - install.createAdmin(next); - } - }); + Groups.get('administrators', {}, function (err, groupObj) { + if (groupObj.memberCount > 0) { + winston.info('Administrator found, skipping Admin setup'); + next(); + } else { + install.createAdmin(next); + } }); }, function (next) {