Ensure queries[language] objects are initialized
This commit is contained in:
parent
8fa2ef886e
commit
ec011ddfdb
3 changed files with 33 additions and 1 deletions
|
|
@ -760,6 +760,14 @@ export async function getDefaultConfig(
|
|||
logger
|
||||
);
|
||||
const queries: Queries = {};
|
||||
for (const language of languages) {
|
||||
if (queries[language] === undefined) {
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
}
|
||||
await addDefaultQueries(codeQL, languages, queries);
|
||||
if (queriesInput) {
|
||||
await addQueriesFromWorkflow(
|
||||
|
|
@ -834,6 +842,14 @@ async function loadConfig(
|
|||
);
|
||||
|
||||
const queries: Queries = {};
|
||||
for (const language of languages) {
|
||||
if (queries[language] === undefined) {
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
}
|
||||
const pathsIgnore: string[] = [];
|
||||
const paths: string[] = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue