db/GroupManager: early return, no functional changes

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

View file

@ -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