From 412bdd185756d90b3c3da8d4d465f618b397bbc2 Mon Sep 17 00:00:00 2001 From: Stephan Jauernick Date: Sun, 1 Jun 2014 21:19:15 +0200 Subject: [PATCH] Renamed the variable to prevent possible problems. --- src/node/db/API.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node/db/API.js b/src/node/db/API.js index a57b8673..4a912368 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -651,17 +651,17 @@ Example returns: exports.getPadID = function(roID, callback) { //get the PadId - readOnlyManager.getPadId(roID, function(err, padID) + readOnlyManager.getPadId(roID, function(err, retrievedPadID) { if(ERR(err, callback)) return; - if(padID == null) + if(retrievedPadID == null) { callback(new customError("padID does not exist","apierror")); } else { - callback(null, {padID: padID}); + callback(null, {padID: retrievedPadID}); } }); }