mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
db/API.js: early return to make error handling evident. No functional changes
This commit is contained in:
parent
67ce19eddb
commit
b59818676e
1 changed files with 3 additions and 4 deletions
|
@ -949,11 +949,10 @@ exports.getPadID = function(roID, callback)
|
|||
if(retrievedPadID == null)
|
||||
{
|
||||
callback(new customError("padID does not exist","apierror"));
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
callback(null, {padID: retrievedPadID});
|
||||
}
|
||||
|
||||
callback(null, {padID: retrievedPadID});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue