Skip to content

Commit 596ae5c

Browse files
committed
Make comparison strict
1 parent d0ab717 commit 596ae5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pr-checks/toolcache.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function hasCodeQLInToolcache(expectedNumber?: string) {
5050
if (allCodeqlVersions.length === 0) {
5151
throw new Error("CodeQL not found in toolcache");
5252
}
53-
if (expected !== undefined && allCodeqlVersions.length > expected) {
53+
if (expected !== undefined && allCodeqlVersions.length !== expected) {
5454
throw new Error(
5555
`Expected ${expected} versions of CodeQL in the toolcache, but found ${allCodeqlVersions.length}`,
5656
);

0 commit comments

Comments
 (0)