From 596ae5c8cf042b08e1010164da813fdfd11a6e48 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 20 Oct 2026 18:12:38 +0100 Subject: [PATCH] Make comparison strict --- pr-checks/toolcache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr-checks/toolcache.ts b/pr-checks/toolcache.ts index 8ec7e80b5..459ecb068 100755 --- a/pr-checks/toolcache.ts +++ b/pr-checks/toolcache.ts @@ -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}`, );