mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
db/GroupManager: early return, no functional changes
This commit is contained in:
parent
f7254a47ea
commit
da8faa1aa9
1 changed files with 10 additions and 11 deletions
|
@ -321,19 +321,18 @@ exports.listPads = function(groupID, 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, let's get the pads
|
//group exists, let's get the pads
|
||||||
else
|
db.getSub("group:" + groupID, ["pads"], function(err, result)
|
||||||
{
|
{
|
||||||
db.getSub("group:" + groupID, ["pads"], function(err, result)
|
if(ERR(err, callback)) return;
|
||||||
{
|
var pads = [];
|
||||||
if(ERR(err, callback)) return;
|
for ( var padId in result ) {
|
||||||
var pads = [];
|
pads.push(padId);
|
||||||
for ( var padId in result ) {
|
}
|
||||||
pads.push(padId);
|
callback(null, {padIDs: pads});
|
||||||
}
|
});
|
||||||
callback(null, {padIDs: pads});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue