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}`, );