Renamed the variable to prevent possible problems.
parent
d42a9eb3a6
commit
412bdd1857
|
@ -651,17 +651,17 @@ Example returns:
|
||||||
exports.getPadID = function(roID, callback)
|
exports.getPadID = function(roID, callback)
|
||||||
{
|
{
|
||||||
//get the PadId
|
//get the PadId
|
||||||
readOnlyManager.getPadId(roID, function(err, padID)
|
readOnlyManager.getPadId(roID, function(err, retrievedPadID)
|
||||||
{
|
{
|
||||||
if(ERR(err, callback)) return;
|
if(ERR(err, callback)) return;
|
||||||
|
|
||||||
if(padID == null)
|
if(retrievedPadID == null)
|
||||||
{
|
{
|
||||||
callback(new customError("padID does not exist","apierror"));
|
callback(new customError("padID does not exist","apierror"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
callback(null, {padID: padID});
|
callback(null, {padID: retrievedPadID});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue