Fix failing test and address PR comments

This commit is contained in:
Andrew Eisenberg
2022-08-11 09:56:08 -07:00
parent 2314063848
commit a09a029937
12 changed files with 28 additions and 15 deletions

View File

@@ -776,8 +776,7 @@ export async function useCodeScanningConfigInCli(
codeql: CodeQL
): Promise<boolean> {
return (
(process.env[EnvVar.CODEQL_PASS_CONFIG_TO_CLI] === "true" &&
(await codeQlVersionAbove(codeql, CODEQL_VERSION_CONFIG_FILES))) ||
false
process.env[EnvVar.CODEQL_PASS_CONFIG_TO_CLI] === "true" &&
(await codeQlVersionAbove(codeql, CODEQL_VERSION_CONFIG_FILES))
);
}