Skip to content

Commit 9127084

Browse files
henrymercerCopilot
andcommitted
Remove redundant empty-list check
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 6d82d4f commit 9127084

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/setup-codeql.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,9 @@ export async function getEnabledVersionsWithOverlayBaseDatabases(
213213
}
214214

215215
const cachedVersionsSet = new Set(cachedVersions);
216-
const overlayVersions = defaultCliVersion.enabledVersions.filter((v) =>
216+
return defaultCliVersion.enabledVersions.filter((v) =>
217217
cachedVersionsSet.has(v.cliVersion),
218218
);
219-
220-
if (overlayVersions.length === 0) {
221-
return [];
222-
}
223-
224-
return overlayVersions;
225219
}
226220

227221
/**

0 commit comments

Comments
 (0)