mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
fix TypeScript NPE type warning
This commit is contained in:
@@ -1174,7 +1174,7 @@ function shouldCombinePacks(packsInput?: string): boolean {
|
||||
function combinePacks(packs1: Packs, packs2: Packs): Packs {
|
||||
const packs = {};
|
||||
for (const lang of Object.keys(packs1)) {
|
||||
packs[lang] = packs1[lang].concat(packs2[lang] || []);
|
||||
packs[lang] = packs1[lang]?.concat(packs2[lang] || []);
|
||||
}
|
||||
for (const lang of Object.keys(packs2)) {
|
||||
if (!packs[lang]) {
|
||||
|
||||
Reference in New Issue
Block a user