mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-04-07 07:58:48 -04:00
rename to shouldPruneCache
This commit is contained in:
parent
d86d62a1a3
commit
edddf6c875
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import {
|
||||||
STATE_CACHE_MATCHED_KEY,
|
STATE_CACHE_MATCHED_KEY,
|
||||||
STATE_CACHE_KEY,
|
STATE_CACHE_KEY,
|
||||||
} from "./cache/restore-cache";
|
} from "./cache/restore-cache";
|
||||||
import { cacheLocalPath, enableCache, pruneCache as pruneCacheOption } from "./utils/inputs";
|
import { cacheLocalPath, enableCache, pruneCache as shouldPruneCache } from "./utils/inputs";
|
||||||
|
|
||||||
export async function run(): Promise<void> {
|
export async function run(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
|
@ -32,7 +32,7 @@ async function saveCache(): Promise<void> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pruneCacheOption) {
|
if (shouldPruneCache) {
|
||||||
await pruneCache();
|
await pruneCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue