datasources: remove empty if (#105314)

pull/107676/head
Gábor Farkas 2 weeks ago committed by GitHub
parent 214fdc791d
commit acdb0e151c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      packages/grafana-runtime/src/utils/DataSourceWithBackend.ts

@ -226,9 +226,6 @@ class DataSourceWithBackend<
if (!(config.featureToggles.queryService || config.featureToggles.grafanaAPIServerWithExperimentalAPIs)) {
console.warn('feature toggle queryServiceFromUI also requires the queryService to be running');
} else {
if (!hasExpr && dsUIDs.size === 1) {
// TODO? can we talk directly to the apiserver?
}
url = `/apis/query.grafana.app/v0alpha1/namespaces/${config.namespace}/query?ds_type=${this.type}`;
}
}

Loading…
Cancel
Save