ImportHandler: flattened code

Removed redundant else, no functional changes
This commit is contained in:
muxator 2018-10-31 23:34:15 +01:00
parent fcd88de900
commit df5618b274

View file

@ -85,13 +85,14 @@ exports.doImport = function(req, res, padId)
if(err || files.file === undefined) {
if(err) console.warn("Uploading Error: " + err.stack);
callback("uploadFailed");
return;
}
//everything ok, continue
else {
//save the path of the uploaded file
srcFile = files.file.path;
callback();
}
//save the path of the uploaded file
srcFile = files.file.path;
callback();
});
},