db/GroupManager: early return, no functional changes
parent
a1d21c0cd2
commit
e90487c3e2
|
@ -279,12 +279,11 @@ exports.createGroupPad = function(groupID, padName, text, callback)
|
|||
if(exists == true)
|
||||
{
|
||||
callback(new customError("padName does already exist","apierror"));
|
||||
return;
|
||||
}
|
||||
|
||||
//pad does not exist, everything is fine
|
||||
else
|
||||
{
|
||||
callback();
|
||||
}
|
||||
callback();
|
||||
});
|
||||
},
|
||||
//create the pad
|
||||
|
|
Loading…
Reference in New Issue