db/GroupManager: early return, no functional changes

pull/3478/head
muxator 2018-08-29 02:42:29 +02:00
parent a1d21c0cd2
commit e90487c3e2
1 changed files with 3 additions and 4 deletions

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