REFACTOR: useless conditional as 'data' always evaluates to true (#9685)

This commit is contained in:
Joffrey JAFFEUX 2020-05-07 16:38:38 +02:00 committed by GitHub
parent 99c3ce03cb
commit 265baa40c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ export default Mixin.create({
}); });
$upload.on("fileuploadfail", (e, data) => { $upload.on("fileuploadfail", (e, data) => {
if (!data || (data && data.errorThrown !== "abort")) { if (!data || data.errorThrown !== "abort") {
displayErrorForUpload(data); displayErrorForUpload(data);
} }
reset(); reset();