ImportHandler: early return via DeMorgan's law
Inverted a boolean condition, no functional changes.pull/3509/head
parent
f652ba8c52
commit
4c2ad68b69
|
@ -188,7 +188,12 @@ exports.doImport = function(req, res, padId)
|
||||||
},
|
},
|
||||||
|
|
||||||
function(callback) {
|
function(callback) {
|
||||||
if (!useConvertor && !directDatabaseAccess){
|
if (useConvertor || directDatabaseAccess) {
|
||||||
|
callback();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Read the file with no encoding for raw buffer access.
|
// Read the file with no encoding for raw buffer access.
|
||||||
fs.readFile(destFile, function(err, buf) {
|
fs.readFile(destFile, function(err, buf) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
@ -206,9 +211,6 @@ exports.doImport = function(req, res, padId)
|
||||||
callback("uploadFailed");
|
callback("uploadFailed");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
callback();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//get the pad object
|
//get the pad object
|
||||||
|
|
Loading…
Reference in New Issue