db/GroupManager: early return, no functional changes

pull/3478/head
muxator 2018-08-29 02:41:14 +02:00
parent da8faa1aa9
commit 9ed7608421
1 changed files with 4 additions and 5 deletions

View File

@ -62,13 +62,12 @@ exports.deleteGroup = function(groupID, callback)
if(_group == null) if(_group == null)
{ {
callback(new customError("groupID does not exist","apierror")); callback(new customError("groupID does not exist","apierror"));
return;
} }
//group exists, everything is fine //group exists, everything is fine
else group = _group;
{ callback();
group = _group;
callback();
}
}); });
}, },
//iterate trough all pads of this groups and delete them //iterate trough all pads of this groups and delete them