mirror of
https://github.com/actions/toolkit.git
synced 2026-08-11 00:00:28 +02:00
Cleanup
This commit is contained in:
+2
-5
@@ -143,7 +143,7 @@ export async function reserveCache(
|
||||
key: string,
|
||||
paths: string[],
|
||||
options?: InternalCacheOptions
|
||||
): Promise<number> {
|
||||
): Promise<ITypedResponse<ReserveCacheResponse>> {
|
||||
const httpClient = createHttpClient()
|
||||
const version = getCacheVersion(paths, options?.compressionMethod)
|
||||
|
||||
@@ -158,10 +158,7 @@ export async function reserveCache(
|
||||
reserveCacheRequest
|
||||
)
|
||||
)
|
||||
if(response?.statusCode === 400){
|
||||
return -2
|
||||
}
|
||||
return response?.result?.cacheId ?? -1
|
||||
return response
|
||||
}
|
||||
|
||||
function getContentRange(start: number, end: number): string {
|
||||
|
||||
Reference in New Issue
Block a user