mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
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)
|
if(exists == false)
|
||||||
{
|
{
|
||||||
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
|
callback();
|
||||||
{
|
|
||||||
callback();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//ensure pad does not exists
|
//ensure pad does not exists
|
||||||
|
|
Loading…
Reference in a new issue