From 996b470dd0d52b5cd68bf1c92f3d6d76dc9f2839 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Fri, 9 Nov 2018 14:24:21 +0100 Subject: [PATCH] stackdriver: remove redundant try catch --- .../stackdriver/StackdriverMetricFindQuery.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/public/app/plugins/datasource/stackdriver/StackdriverMetricFindQuery.ts b/public/app/plugins/datasource/stackdriver/StackdriverMetricFindQuery.ts index 8685bdc3807..3a5faf2c5d3 100644 --- a/public/app/plugins/datasource/stackdriver/StackdriverMetricFindQuery.ts +++ b/public/app/plugins/datasource/stackdriver/StackdriverMetricFindQuery.ts @@ -60,13 +60,9 @@ export default class StackdriverMetricFindQuery { if (!selectedMetricType) { return []; } - try { - const refId = 'handleResourceTypeQueryQueryType'; - const response = await this.datasource.getLabels(selectedMetricType, refId); - return response.meta.resourceTypes.map(this.toFindQueryResult); - } catch (error) { - return []; - } + const refId = 'handleResourceTypeQueryQueryType'; + const response = await this.datasource.getLabels(selectedMetricType, refId); + return response.meta.resourceTypes.map(this.toFindQueryResult); } async handleAlignersQuery({ selectedMetricType }) {