db/GroupManager: early return, no functional changes

This commit is contained in:
muxator 2018-08-29 02:40:14 +02:00
parent f7254a47ea
commit da8faa1aa9

View file

@ -321,10 +321,10 @@ exports.listPads = function(groupID, callback)
if(exists == false)
{
callback(new customError("groupID does not exist","apierror"));
return;
}
//group exists, let's get the pads
else
{
db.getSub("group:" + groupID, ["pads"], function(err, result)
{
if(ERR(err, callback)) return;
@ -334,6 +334,5 @@ exports.listPads = function(groupID, callback)
}
callback(null, {padIDs: pads});
});
}
});
}