ImportHandler: anticipated the error checking

No functional changes.
This commit is contained in:
muxator 2018-10-31 23:22:50 +01:00
parent 4c2ad68b69
commit 2b8e45e2bd

View file

@ -205,11 +205,14 @@ exports.doImport = function(req, res, padId)
break;
}
}
if (isAscii) {
callback();
} else {
if (!isAscii) {
callback("uploadFailed");
return;
}
callback();
});
},