mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
db/PadManager: early return, no functional changes
This commit is contained in:
parent
ecb0c41d29
commit
4728736dd8
1 changed files with 9 additions and 10 deletions
|
@ -214,9 +214,9 @@ exports.sanitizePadId = function(padId, callback) {
|
|||
if(exists)
|
||||
{
|
||||
callback(padId);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//get the next transformation *that's different*
|
||||
var transformedPadId = padId;
|
||||
while(transformedPadId == padId && transform_index < padIdTransforms.length)
|
||||
|
@ -226,7 +226,6 @@ exports.sanitizePadId = function(padId, callback) {
|
|||
}
|
||||
//check the next transform
|
||||
exports.sanitizePadId(transformedPadId, callback, transform_index);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue