Avoid passing an undefined qlconfig arg

This commit is contained in:
Henry Mercer 2023-03-06 10:26:34 +00:00 committed by Andrew Eisenberg
parent 8340258886
commit 4366485427
6 changed files with 55 additions and 10 deletions

3
lib/codeql.js generated
View file

@ -335,7 +335,8 @@ async function getCodeQLForCmd(cmd, checkVersion) {
extraArgs.push("--external-repository-token-stdin");
}
}
if (await util.codeQlVersionAbove(this, exports.CODEQL_VERSION_INIT_WITH_QLCONFIG)) {
if (qlconfigFile !== undefined &&
(await util.codeQlVersionAbove(this, exports.CODEQL_VERSION_INIT_WITH_QLCONFIG))) {
extraArgs.push(`--qlconfig=${qlconfigFile}`);
}
await runTool(cmd, [