mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56: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);
|
||||
// direct Database Access means a pad user should perform a switchToPad
|
||||
// and not attempt to recieve updated pad data..
|
||||
if(!directDatabaseAccess){
|
||||
padMessageHandler.updatePadClients(pad, function(){
|
||||
callback();
|
||||
});
|
||||
}else{
|
||||
if (directDatabaseAccess) {
|
||||
callback();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
padMessageHandler.updatePadClients(pad, function(){
|
||||
callback();
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue