Skip to content

Node.js based forum software built for the modern web

fixing installation script that broke with recent updates to groups

Julian Lamc4bc51b834a9
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 {