ImportHandler: early return by condition inversion

No functional changes
This commit is contained in:
muxator 2018-10-31 23:27:22 +01:00
parent 12bb97dc2d
commit df15daac0e

View file

@ -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();
});
}); });
}, },