ImportHandler: anticipated the error checking

No functional changes.
pull/3509/head
muxator 2018-10-31 23:22:50 +01:00
parent 4c2ad68b69
commit 2b8e45e2bd
1 changed files with 6 additions and 3 deletions

View File

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