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.