ImportHandler: early return via DeMorgan's law
Inverted a boolean condition, no functional changes.pull/3509/head
parent
395db73eb1
commit
9d104cc4b0
|
@ -158,7 +158,12 @@ exports.doImport = function(req, res, padId)
|
|||
},
|
||||
//convert file to html
|
||||
function(callback) {
|
||||
if(!importHandledByPlugin && !directDatabaseAccess){
|
||||
if (importHandledByPlugin || directDatabaseAccess) {
|
||||
callback();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var fileEnding = path.extname(srcFile).toLowerCase();
|
||||
var fileIsHTML = (fileEnding === ".html" || fileEnding === ".htm");
|
||||
var fileIsTXT = (fileEnding === ".txt");
|
||||
|
@ -178,9 +183,6 @@ exports.doImport = function(req, res, padId)
|
|||
// if no convertor only rename
|
||||
fs.rename(srcFile, destFile, callback);
|
||||
}
|
||||
}else{
|
||||
callback();
|
||||
}
|
||||
},
|
||||
|
||||
function(callback) {
|
||||
|
|
Loading…
Reference in New Issue