Renamed the variable to prevent possible problems.

This commit is contained in:
Stephan Jauernick 2014-06-01 21:19:15 +02:00
parent d42a9eb3a6
commit 412bdd1857
1 changed files with 3 additions and 3 deletions

View File

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