diff --git a/packages/cache/src/internal/cacheHttpClient.ts b/packages/cache/src/internal/cacheHttpClient.ts index 87ad735f..fea000a6 100644 --- a/packages/cache/src/internal/cacheHttpClient.ts +++ b/packages/cache/src/internal/cacheHttpClient.ts @@ -77,7 +77,7 @@ export function getCacheVersion( enableCrossOsArchive = false ): string { const components = paths - .concat([!compressionMethod ? '' : compressionMethod]) + .concat(!compressionMethod ? [] : [compressionMethod]) .concat( process.platform !== 'win32' || enableCrossOsArchive ? []