diff --git a/src/cache-save.ts b/src/cache-save.ts index 4dfe4165..e0dc6162 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -70,7 +70,7 @@ async function saveCache(packageManager: string) { return; } - 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.