Make targetHasScope reutnr boolean
CodeQL checks / Detect whether code changed (push) Has been cancelled Details
CodeQL checks / Analyze (actions) (push) Has been cancelled Details
CodeQL checks / Analyze (go) (push) Has been cancelled Details
CodeQL checks / Analyze (javascript) (push) Has been cancelled Details

This commit is contained in:
Tobias Skarhed 2025-10-06 17:08:32 +02:00
parent f67adbfd33
commit 1de31f31df
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,7 @@ export class PrometheusDatasource
}
function targetHasScopes(target: PromQuery): boolean {
return target.scopes && target.scopes.length > 0;
return !!(target.scopes && target.scopes.length > 0);
}
export function extractRuleMappingFromGroups(groups: RawRecordingRules[]): RuleQueryMapping {