Strict equality
This commit is contained in:
parent
4f8aac5beb
commit
360237f0c0
|
|
@ -62,7 +62,7 @@ const cachePackages = async (packageManager: string) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const cacheId = await cache.saveCache(cachePaths, primaryKey);
|
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.
|
// 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
|
// 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.
|
// already logged the reason at the appropriate severity, so just trace it.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue