From 2b9e5c99961261bc3c9419cf9bb29c115c59eb99 Mon Sep 17 00:00:00 2001
From: Alfredo Sumaran <alfredo@gitlab.com>
Date: Wed, 2 Mar 2016 10:40:07 -0500
Subject: [PATCH] Group similar conditionals

---
 app/assets/javascripts/user_tabs.js.coffee | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/app/assets/javascripts/user_tabs.js.coffee b/app/assets/javascripts/user_tabs.js.coffee
index 698b1dde7c7..0d26f49095d 100644
--- a/app/assets/javascripts/user_tabs.js.coffee
+++ b/app/assets/javascripts/user_tabs.js.coffee
@@ -92,13 +92,7 @@ class @UserTabs
     if action is 'activity'
       @loadActivities(source)
 
-    if action is 'groups'
-      @loadTab(source, action)
-
-    if action is 'contributed'
-      @loadTab(source, action)
-
-    if action is 'projects'
+    if action in ['groups', 'contributed', 'projects']
       @loadTab(source, action)
 
   loadTab: (source, action) ->
-- 
2.30.9