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

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

diff --git a/app/assets/javascripts/discourse/app/mixins/upload.js b/app/assets/javascripts/discourse/app/mixins/upload.js
index f7d568c..1066a1e 100644
--- a/app/assets/javascripts/discourse/app/mixins/upload.js
+++ b/app/assets/javascripts/discourse/app/mixins/upload.js
@@ -99,7 +99,7 @@ export default Mixin.create({
     });
 
     $upload.on("fileuploadfail", (e, data) => {
-      if (!data || (data && data.errorThrown !== "abort")) {
+      if (!data || data.errorThrown !== "abort") {
         displayErrorForUpload(data);
       }
       reset();

GitHub sha: 265baa40

This commit appears in #9685 which was approved by eviltrout. It was merged by jjaffeux.