Make comparison strict

This commit is contained in:
Michael B. Gale
2026-10-20 18:12:38 +01:00
parent d0ab717e67
commit 596ae5c8cf

View File

@@ -50,7 +50,7 @@ function hasCodeQLInToolcache(expectedNumber?: string) {
if (allCodeqlVersions.length === 0) {
throw new Error("CodeQL not found in toolcache");
}
if (expected !== undefined && allCodeqlVersions.length > expected) {
if (expected !== undefined && allCodeqlVersions.length !== expected) {
throw new Error(
`Expected ${expected} versions of CodeQL in the toolcache, but found ${allCodeqlVersions.length}`,
);