mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-05-01 19:18:05 +08:00
Remove unnecessary type hints
This commit is contained in:
9
packages/cache/src/cache.ts
vendored
9
packages/cache/src/cache.ts
vendored
@@ -253,8 +253,7 @@ async function restoreCachev2(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const response: GetCacheEntryDownloadURLResponse =
|
const response = await twirpClient.GetCacheEntryDownloadURL(request)
|
||||||
await twirpClient.GetCacheEntryDownloadURL(request)
|
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
core.warning(`Cache not found for keys: ${keys.join(', ')}`)
|
core.warning(`Cache not found for keys: ${keys.join(', ')}`)
|
||||||
@@ -273,7 +272,7 @@ async function restoreCachev2(
|
|||||||
utils.getCacheFileName(compressionMethod)
|
utils.getCacheFileName(compressionMethod)
|
||||||
)
|
)
|
||||||
core.debug(`Archive path: ${archivePath}`)
|
core.debug(`Archive path: ${archivePath}`)
|
||||||
core.debug(`Starting download of artifact to: ${archivePath}`)
|
core.debug(`Starting download of archive to: ${archivePath}`)
|
||||||
|
|
||||||
await DownloadCacheFile(response.signedDownloadUrl, archivePath)
|
await DownloadCacheFile(response.signedDownloadUrl, archivePath)
|
||||||
|
|
||||||
@@ -503,8 +502,8 @@ async function saveCachev2(
|
|||||||
key,
|
key,
|
||||||
version
|
version
|
||||||
}
|
}
|
||||||
const response: CreateCacheEntryResponse =
|
|
||||||
await twirpClient.CreateCacheEntry(request)
|
const response = await twirpClient.CreateCacheEntry(request)
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new ReserveCacheError(
|
throw new ReserveCacheError(
|
||||||
`Unable to reserve cache with key ${key}, another job may be creating this cache.`
|
`Unable to reserve cache with key ${key}, another job may be creating this cache.`
|
||||||
|
|||||||
Reference in New Issue
Block a user