mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-09 06:06:13 +02:00
db/AuthorManager: early return, no functional changes
This commit is contained in:
parent
2b8646a855
commit
61823e7689
@ -209,20 +209,19 @@ exports.listPadsOfAuthor = function (authorID, callback)
|
||||
if(author == null)
|
||||
{
|
||||
callback(new customError("authorID does not exist","apierror"))
|
||||
return;
|
||||
}
|
||||
|
||||
//everything is fine, return the pad IDs
|
||||
else
|
||||
var pads = [];
|
||||
if(author.padIDs != null)
|
||||
{
|
||||
var pads = [];
|
||||
if(author.padIDs != null)
|
||||
for (var padId in author.padIDs)
|
||||
{
|
||||
for (var padId in author.padIDs)
|
||||
{
|
||||
pads.push(padId);
|
||||
}
|
||||
pads.push(padId);
|
||||
}
|
||||
callback(null, {padIDs: pads});
|
||||
}
|
||||
callback(null, {padIDs: pads});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user