mirror of
https://github.com/github/codeql-action.git
synced 2026-04-05 11:12:16 +00:00
Remove superfluous if
This commit is contained in:
20
lib/config-utils.js
generated
20
lib/config-utils.js
generated
@@ -395,12 +395,10 @@ async function getDefaultConfig(languagesInput, queriesInput, dbLocation, reposi
|
||||
const languages = await getLanguages(languagesInput, repository, apiDetails, logger);
|
||||
const queries = {};
|
||||
for (const language of languages) {
|
||||
if (queries[language] === undefined) {
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
await addDefaultQueries(codeQL, languages, queries);
|
||||
if (queriesInput) {
|
||||
@@ -446,12 +444,10 @@ async function loadConfig(languagesInput, queriesInput, configFile, dbLocation,
|
||||
const languages = await getLanguages(languagesInput, repository, apiDetails, logger);
|
||||
const queries = {};
|
||||
for (const language of languages) {
|
||||
if (queries[language] === undefined) {
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
const pathsIgnore = [];
|
||||
const paths = [];
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -761,12 +761,10 @@ export async function getDefaultConfig(
|
||||
);
|
||||
const queries: Queries = {};
|
||||
for (const language of languages) {
|
||||
if (queries[language] === undefined) {
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
await addDefaultQueries(codeQL, languages, queries);
|
||||
if (queriesInput) {
|
||||
@@ -843,12 +841,10 @@ async function loadConfig(
|
||||
|
||||
const queries: Queries = {};
|
||||
for (const language of languages) {
|
||||
if (queries[language] === undefined) {
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
queries[language] = {
|
||||
builtin: [],
|
||||
custom: [],
|
||||
};
|
||||
}
|
||||
const pathsIgnore: string[] = [];
|
||||
const paths: string[] = [];
|
||||
|
||||
Reference in New Issue
Block a user