Avoid passing an undefined qlconfig arg
This commit is contained in:
parent
8340258886
commit
4366485427
6 changed files with 55 additions and 10 deletions
3
lib/codeql.js
generated
3
lib/codeql.js
generated
|
|
@ -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, [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue