mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-12-07 10:21:00 +01:00
db/API.js: early return to make error handling evident. No functional changes
This commit is contained in:
parent
67ce19eddb
commit
b59818676e
@ -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…
x
Reference in New Issue
Block a user