mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-26 21:08:05 +08:00
Update packages/cache/src/internal/cacheUtils.ts
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
This commit is contained in:
6
packages/cache/src/internal/cacheUtils.ts
vendored
6
packages/cache/src/internal/cacheUtils.ts
vendored
@@ -125,9 +125,5 @@ export function assertDefined<T>(name: string, value?: T): T {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function isFeatureAvailable(): boolean {
|
export function isFeatureAvailable(): boolean {
|
||||||
if (process.env['ACTIONS_CACHE_URL']) {
|
return !!process.env['ACTIONS_CACHE_URL']
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user