Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasmus Wriedt Larsen committed Apr 4, 2024
1 parent 9ba21c3 commit d829366
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/analyze-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ async function run() {
memory,
config,
logger,
features,
);

if (actionsUtil.getRequiredInput("skip-queries") !== "true") {
Expand Down
7 changes: 1 addition & 6 deletions src/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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)) {
Expand Down Expand Up @@ -224,12 +222,11 @@ async function finalizeDatabaseCreation(
threadsFlag: string,
memoryFlag: string,
logger: Logger,
features: FeatureEnablement,
): Promise<DatabaseCreationTimings> {
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();
Expand Down Expand Up @@ -405,7 +402,6 @@ export async function runFinalize(
memoryFlag: string,
config: configUtils.Config,
logger: Logger,
features: FeatureEnablement,
): Promise<DatabaseCreationTimings> {
try {
await del(outputDir, { force: true });
Expand All @@ -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
Expand Down

0 comments on commit d829366

Please sign in to comment.