mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: remove redundant try catch
This commit is contained in:
parent
bb1f79ecdc
commit
996b470dd0
@ -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…
Reference in New Issue
Block a user