1
0
Fork 0
mirror of https://github.com/actions/toolkit synced 2025-05-10 17:12:54 +00:00

Added formatting changes

This commit is contained in:
Sankalp Kotewar 2022-08-08 04:56:02 +00:00
parent f9d38b0015
commit cf5d2b8fac

View file

@ -250,7 +250,9 @@ export async function downloadCacheStorageSDK(
try { try {
downloadProgress.startDisplayTimer() downloadProgress.startDisplayTimer()
const segmentTimeoutInMs = const segmentTimeoutInMs =
options.segmentTimeoutInMs === undefined ? 3600000 : options.segmentTimeoutInMs options.segmentTimeoutInMs === undefined
? 3600000
: options.segmentTimeoutInMs
const abortSignal = AbortController.timeout(segmentTimeoutInMs) const abortSignal = AbortController.timeout(segmentTimeoutInMs)
abortSignal.addEventListener('abort', () => { abortSignal.addEventListener('abort', () => {
core.warning('Cache download aborted, segment download timed out.') core.warning('Cache download aborted, segment download timed out.')