mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
ImportHandler: early return by condition inversion
No functional changes
This commit is contained in:
parent
12bb97dc2d
commit
df15daac0e
1 changed files with 7 additions and 5 deletions
|
@ -270,13 +270,15 @@ exports.doImport = function(req, res, padId)
|
||||||
padManager.unloadPad(padId);
|
padManager.unloadPad(padId);
|
||||||
// direct Database Access means a pad user should perform a switchToPad
|
// direct Database Access means a pad user should perform a switchToPad
|
||||||
// and not attempt to recieve updated pad data..
|
// and not attempt to recieve updated pad data..
|
||||||
if(!directDatabaseAccess){
|
if (directDatabaseAccess) {
|
||||||
padMessageHandler.updatePadClients(pad, function(){
|
|
||||||
callback();
|
|
||||||
});
|
|
||||||
}else{
|
|
||||||
callback();
|
callback();
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
padMessageHandler.updatePadClients(pad, function(){
|
||||||
|
callback();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue