Skip to content

Commit

Permalink
ImportHandler: early return by condition inversion
Browse files Browse the repository at this point in the history
No functional changes
  • Loading branch information
muxator committed Oct 31, 2018
1 parent 12bb97d commit df15daa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/node/handler/ImportHandler.js
Expand Up @@ -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();
});
});

},
Expand Down

0 comments on commit df15daa

Please sign in to comment.