From d8293662f43140bd9e6f326e27425014a3a2e6a4 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Thu, 4 Apr 2024 17:14:42 +0200 Subject: [PATCH] Fix linting errors --- src/analyze-action.ts | 1 - src/analyze.ts | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/analyze-action.ts b/src/analyze-action.ts index 03f02dd70..9e286ec3c 100644 --- a/src/analyze-action.ts +++ b/src/analyze-action.ts @@ -250,7 +250,6 @@ async function run() { memory, config, logger, - features, ); if (actionsUtil.getRequiredInput("skip-queries") !== "true") { diff --git a/src/analyze.ts b/src/analyze.ts index 8098530b7..75ee82400 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -2,7 +2,6 @@ import * as fs from "fs"; import * as path from "path"; import { performance } from "perf_hooks"; -import * as toolrunner from "@actions/exec/lib/toolrunner"; import { safeWhich } from "@chrisgavin/safe-which"; import del from "del"; import * as yaml from "js-yaml"; @@ -135,7 +134,6 @@ export async function runExtraction( codeql: CodeQL, config: configUtils.Config, logger: Logger, - features: FeatureEnablement, ) { for (const language of config.languages) { if (dbIsFinalized(config, language, logger)) { @@ -224,12 +222,11 @@ async function finalizeDatabaseCreation( threadsFlag: string, memoryFlag: string, logger: Logger, - features: FeatureEnablement, ): Promise { const codeql = await getCodeQL(config.codeQLCmd); const extractionStart = performance.now(); - await runExtraction(codeql, config, logger, features); + await runExtraction(codeql, config, logger); const extractionTime = performance.now() - extractionStart; const trapImportStart = performance.now(); @@ -405,7 +402,6 @@ export async function runFinalize( memoryFlag: string, config: configUtils.Config, logger: Logger, - features: FeatureEnablement, ): Promise { try { await del(outputDir, { force: true }); @@ -421,7 +417,6 @@ export async function runFinalize( threadsFlag, memoryFlag, logger, - features, ); // WARNING: This does not _really_ end tracing, as the tracer will restore its