db/API.js: early return to make error handling evident. No functional changes

pull/3478/head
muxator 2018-08-29 02:18:32 +02:00
parent 67ce19eddb
commit b59818676e
1 changed files with 3 additions and 4 deletions

View File

@ -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});
});
}