From 360237f0c01778d0c17291f75c56d6feae4f7574 Mon Sep 17 00:00:00 2001 From: Jason Ginchereau Date: Thu, 18 Jun 2026 15:46:26 -0700 Subject: [PATCH] Strict equality --- src/cache-save.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache-save.ts b/src/cache-save.ts index 5a343c91..2cbf4aef 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -62,7 +62,7 @@ const cachePackages = async (packageManager: string) => { } const cacheId = await cache.saveCache(cachePaths, primaryKey); - if (cacheId == -1) { + if (cacheId === -1) { // saveCache returns -1 without throwing when the cache was not saved, e.g. // a reserve collision or a read-only token (fork PR). @actions/cache has // already logged the reason at the appropriate severity, so just trace it.