From 604952bc97bc31e1af05cfa08268fd5c0cd89d8c Mon Sep 17 00:00:00 2001 From: muxator Date: Wed, 29 Aug 2018 02:38:09 +0200 Subject: [PATCH] db/GroupManager: fix indentation This is to make easier on the eye the next change. --- src/node/db/GroupManager.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/node/db/GroupManager.js b/src/node/db/GroupManager.js index 44bda74f2..f8255ba36 100644 --- a/src/node/db/GroupManager.js +++ b/src/node/db/GroupManager.js @@ -227,20 +227,20 @@ exports.createGroupIfNotExistsFor = function(groupMapper, callback) if(ERR(err, callback)) return; - // there is a group for this mapper - if(groupID) { - exports.doesGroupExist(groupID, function(err, exists) { - if(ERR(err, callback)) return; - if(exists) return callback(null, {groupID: groupID}); - - // hah, the returned group doesn't exist, let's create one - createGroupForMapper(callback) - }) - } - //there is no group for this mapper, let's create a group - else { - createGroupForMapper(callback) - } + // there is a group for this mapper + if(groupID) { + exports.doesGroupExist(groupID, function(err, exists) { + if(ERR(err, callback)) return; + if(exists) return callback(null, {groupID: groupID}); + + // hah, the returned group doesn't exist, let's create one + createGroupForMapper(callback) + }) + } + //there is no group for this mapper, let's create a group + else { + createGroupForMapper(callback) + } }); }