diff --git a/src/node/db/API.js b/src/node/db/API.js index d2ff92062..21c958809 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -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}); }); }