DEV: duplicate and unreachable code after `return`

DEV: duplicate and unreachable code after `return`
From 97e6e3b1337b42954f7c4a91d263f9acc7f54beb Mon Sep 17 00:00:00 2001
From: Kyle Zhao <kzhao.sw@gmail.com>
Date: Wed, 5 Dec 2018 09:17:20 -0500
Subject: [PATCH] DEV: duplicate and unreachable code after `return`


diff --git a/app/assets/javascripts/discourse/components/categories-boxes-with-topics.js.es6 b/app/assets/javascripts/discourse/components/categories-boxes-with-topics.js.es6
index 0555b7f..bf558ed 100644
--- a/app/assets/javascripts/discourse/components/categories-boxes-with-topics.js.es6
+++ b/app/assets/javascripts/discourse/components/categories-boxes-with-topics.js.es6
@@ -12,8 +12,5 @@ export default Ember.Component.extend({
     return this.get("categories").any(c => {
       return !Ember.isEmpty(c.get("uploaded_logo.url"));
     });
-    return this.get("categories").any(
-      c => !Ember.isEmpty(c.get("uploaded_logo.url"))
-    );
   }
 });

GitHub

2 Likes