mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Renamed the variable to prevent possible problems.
This commit is contained in:
parent
d42a9eb3a6
commit
412bdd1857
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue