db/GroupManager: early return, no functional changes
parent
da8faa1aa9
commit
9ed7608421
|
@ -62,13 +62,12 @@ exports.deleteGroup = function(groupID, callback)
|
|||
if(_group == null)
|
||||
{
|
||||
callback(new customError("groupID does not exist","apierror"));
|
||||
return;
|
||||
}
|
||||
|
||||
//group exists, everything is fine
|
||||
else
|
||||
{
|
||||
group = _group;
|
||||
callback();
|
||||
}
|
||||
});
|
||||
},
|
||||
//iterate trough all pads of this groups and delete them
|
||||
|
|
Loading…
Reference in New Issue