db/AuthorManager: early return, no functional changes

This commit is contained in:
muxator 2018-08-29 02:28:40 +02:00
parent 2b8646a855
commit 61823e7689

View file

@ -209,10 +209,10 @@ exports.listPadsOfAuthor = function (authorID, callback)
if(author == null) if(author == null)
{ {
callback(new customError("authorID does not exist","apierror")) callback(new customError("authorID does not exist","apierror"))
return;
} }
//everything is fine, return the pad IDs //everything is fine, return the pad IDs
else
{
var pads = []; var pads = [];
if(author.padIDs != null) if(author.padIDs != null)
{ {
@ -222,7 +222,6 @@ exports.listPadsOfAuthor = function (authorID, callback)
} }
} }
callback(null, {padIDs: pads}); callback(null, {padIDs: pads});
}
}); });
} }