Skip to content

Commit acdb0e1

Browse files
authored
datasources: remove empty if (#105314)
1 parent 214fdc7 commit acdb0e1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/grafana-runtime/src/utils/DataSourceWithBackend.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,6 @@ class DataSourceWithBackend<
226226
if (!(config.featureToggles.queryService || config.featureToggles.grafanaAPIServerWithExperimentalAPIs)) {
227227
console.warn('feature toggle queryServiceFromUI also requires the queryService to be running');
228228
} else {
229-
if (!hasExpr && dsUIDs.size === 1) {
230-
// TODO? can we talk directly to the apiserver?
231-
}
232229
url = `/apis/query.grafana.app/v0alpha1/namespaces/${config.namespace}/query?ds_type=${this.type}`;
233230
}
234231
}

0 commit comments

Comments
 (0)