mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -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)
|
if(retrievedPadID == null)
|
||||||
{
|
{
|
||||||
callback(new customError("padID does not exist","apierror"));
|
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