Chore: reduce null check errors/warnigns (#25223)

* fix a few null errors

* more

* flip logic

* merge master

* more

* fewer changes

* processor

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
Ryan McKinley
2020-07-03 08:49:29 -07:00
committed by GitHub
parent 26852ca788
commit c0762b6ddc
8 changed files with 60 additions and 48 deletions

View File

@@ -40,9 +40,9 @@ export class MixedDatasource extends DataSourceApi<DataQuery> {
const mixed: BatchedQueries[] = [];
for (const key in sets) {
const targets = sets[key];
const dsName = targets[0].datasource;
const dsName: string | undefined = targets[0].datasource;
mixed.push({
datasource: getDataSourceSrv().get(dsName),
datasource: getDataSourceSrv().get(dsName, request.scopedVars),
targets,
});
}