mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-03 17:33:18 +08:00
Linting
This commit is contained in:
4
packages/cache/src/internal/contracts.d.ts
vendored
4
packages/cache/src/internal/contracts.d.ts
vendored
@@ -1,7 +1,5 @@
|
||||
import {CompressionMethod} from './constants'
|
||||
import {
|
||||
ITypedResponse
|
||||
} from '@actions/http-client/interfaces'
|
||||
import {ITypedResponse} from '@actions/http-client/interfaces'
|
||||
|
||||
export interface ITypedResponseWithErrorMessage<T> extends ITypedResponse<T> {
|
||||
message?: string
|
||||
|
||||
7
packages/cache/src/internal/requestUtils.ts
vendored
7
packages/cache/src/internal/requestUtils.ts
vendored
@@ -1,8 +1,7 @@
|
||||
import * as core from '@actions/core'
|
||||
import {HttpCodes, HttpClientError} from '@actions/http-client'
|
||||
import {
|
||||
IHttpClientResponse,
|
||||
ITypedResponse
|
||||
IHttpClientResponse
|
||||
} from '@actions/http-client/interfaces'
|
||||
import {DefaultRetryDelay, DefaultRetryAttempts} from './constants'
|
||||
import {ITypedResponseWithErrorMessage} from './contracts'
|
||||
@@ -113,8 +112,8 @@ export async function retryTypedResponse<T>(
|
||||
statusCode: error.statusCode,
|
||||
result: null,
|
||||
headers: {},
|
||||
message:error.message,
|
||||
typeKey:error.result.typeKey
|
||||
message: error.message,
|
||||
typeKey: error.result.typeKey
|
||||
}
|
||||
} else {
|
||||
return undefined
|
||||
|
||||
Reference in New Issue
Block a user