Renamed the variable to prevent possible problems.
This commit is contained in:
parent
d42a9eb3a6
commit
412bdd1857
|
@ -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});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue