db/GroupManager: early return, no functional changes
This commit is contained in:
parent
9ed7608421
commit
a1d21c0cd2
1 changed files with 3 additions and 4 deletions
|
@ -261,12 +261,11 @@ exports.createGroupPad = function(groupID, padName, text, callback)
|
|||
if(exists == false)
|
||||
{
|
||||
callback(new customError("groupID does not exist","apierror"));
|
||||
return;
|
||||
}
|
||||
|
||||
//group exists, everything is fine
|
||||
else
|
||||
{
|
||||
callback();
|
||||
}
|
||||
callback();
|
||||
});
|
||||
},
|
||||
//ensure pad does not exists
|
||||
|
|
Loading…
Reference in a new issue