db/GroupManager: early return, no functional changes

This commit is contained in:
muxator 2018-08-29 02:42:29 +02:00
parent a1d21c0cd2
commit e90487c3e2

View file

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