Merge pull request #1709 from github/henrymercer/print-baseline-once

Only print lines of code information once
This commit is contained in:
Henry Mercer 2023-05-26 21:03:22 +01:00 committed by GitHub
commit 6bd8101752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

2
lib/analyze.js generated
View file

@ -209,7 +209,7 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag,
logger.endGroup();
logger.info(analysisSummary);
}
logger.info(await runPrintLinesOfCode(language));
await runPrintLinesOfCode(language);
}
catch (e) {
logger.info(String(e));

File diff suppressed because one or more lines are too long

View file

@ -352,7 +352,7 @@ export async function runQueries(
logger.endGroup();
logger.info(analysisSummary);
}
logger.info(await runPrintLinesOfCode(language));
await runPrintLinesOfCode(language);
} catch (e) {
logger.info(String(e));
if (e instanceof Error) {