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