mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
db/PadManager: early return, no functional changes
This commit is contained in:
parent
12f224ae72
commit
ecb0c41d29
1 changed files with 17 additions and 18 deletions
|
@ -205,10 +205,10 @@ exports.sanitizePadId = function(padId, callback) {
|
||||||
if(transform_index >= padIdTransforms.length)
|
if(transform_index >= padIdTransforms.length)
|
||||||
{
|
{
|
||||||
callback(padId);
|
callback(padId);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//check if padId exists
|
//check if padId exists
|
||||||
else
|
|
||||||
{
|
|
||||||
exports.doesPadExists(padId, function(junk, exists)
|
exports.doesPadExists(padId, function(junk, exists)
|
||||||
{
|
{
|
||||||
if(exists)
|
if(exists)
|
||||||
|
@ -229,7 +229,6 @@ exports.sanitizePadId = function(padId, callback) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
exports.isValidPadId = function(padId)
|
exports.isValidPadId = function(padId)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue