Remove redundant analysis kind check

This commit is contained in:
Michael B. Gale
2026-02-11 22:14:39 +00:00
parent 406bbfcef1
commit 8cc4d2539b
2 changed files with 4 additions and 10 deletions
+3 -6
View File
@@ -549,12 +549,9 @@ export async function runQueries(
): Promise<{ summary: string; sarifFile: string }> {
logger.info(`Interpreting ${analysis.name} results for ${language}`);
// If this is a Code Quality analysis, correct the category to one
// accepted by the Code Quality backend.
let category = automationDetailsId;
if (analysis.kind === analyses.AnalysisKind.CodeQuality) {
category = analysis.fixCategory(logger, automationDetailsId);
}
// Apply the analysis configuration's `fixCategory` function to adjust the category if needed.
// This is a no-op for Code Scanning.
const category = analysis.fixCategory(logger, automationDetailsId);
const sarifFile = path.join(
sarifFolder,