diff --git a/src/utils/action.ts b/src/utils/action.ts index beb7e5cd..ee227218 100644 --- a/src/utils/action.ts +++ b/src/utils/action.ts @@ -70,8 +70,7 @@ export async function restoreCache({ lookupOnly: boolean; }) { return await cache.restoreCache( - // https://github.com/actions/toolkit/pull/1378#issuecomment-1478388929 - inputs.paths.slice(), + inputs.paths, primaryKey, restoreKeys, { lookupOnly }, diff --git a/src/utils/purge.ts b/src/utils/purge.ts index 7a2b3b0d..125239be 100644 --- a/src/utils/purge.ts +++ b/src/utils/purge.ts @@ -149,8 +149,6 @@ export async function purgeCachesByTime({ time: number; prefixes: string[]; }): Promise { - // TODO https://github.com/actions/toolkit/pull/1378#issuecomment-1478388929 - for (const doUseLastAccessedTime of [true, false]) { if ( (doUseLastAccessedTime @@ -160,7 +158,7 @@ export async function purgeCachesByTime({ await purgeByTime({ primaryKey, doUseLastAccessedTime, - prefixes: prefixes.slice(), + prefixes, time }); }