stackdriver: remove redundant try catch

pull/14007/head
Erik Sundell 7 years ago
parent bb1f79ecdc
commit 996b470dd0
  1. 10
      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 }) {

Loading…
Cancel
Save