db/GroupManager: early return, no functional changes

This commit is contained in:
muxator 2018-08-29 02:41:14 +02:00
parent da8faa1aa9
commit 9ed7608421

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; group = _group;
callback(); callback();
}
}); });
}, },
//iterate trough all pads of this groups and delete them //iterate trough all pads of this groups and delete them