db/GroupManager: fix indentation

This is to make easier on the eye the next change.
pull/3478/head
muxator 2018-08-29 02:38:09 +02:00
parent c85bcf0614
commit 604952bc97
1 changed files with 14 additions and 14 deletions

View File

@ -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});
// 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)
}
// 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)
}
});
}