From 7a723299fd4cf146a022f02a80db8abb5975a759 Mon Sep 17 00:00:00 2001
From: Lewis Liu <develop@lewisl.net>
Date: Tue, 28 Jun 2016 14:15:32 -0700
Subject: [PATCH] Refactored out redundant statements

---
 frontend/src/metabase/dashboard/dashboard.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/frontend/src/metabase/dashboard/dashboard.js b/frontend/src/metabase/dashboard/dashboard.js
index 6697ad1335b..19de4d3317c 100644
--- a/frontend/src/metabase/dashboard/dashboard.js
+++ b/frontend/src/metabase/dashboard/dashboard.js
@@ -157,8 +157,7 @@ export const fetchCardData = createThunkAction(FETCH_CARD_DATA, function(card, d
           result = await MetabaseApi.dataset(datasetQuery);
         }
         catch (error) {
-          clearTimeout(slowCardTimer);
-          return { dashcard_id: dashcard.id, card_id: card.id, result: { error } };
+          result = { error };
         }
 
         clearTimeout(slowCardTimer);
-- 
GitLab