Formatting and stylistic cleanup

This commit is contained in:
Bassem Dghaidi
2024-11-14 03:22:03 -08:00
committed by GitHub
parent 69409b3acd
commit b2557ac90c
11 changed files with 321 additions and 297 deletions

View File

@@ -3,15 +3,15 @@ import * as core from '@actions/core'
import {
BlobClient,
BlockBlobClient,
BlobDownloadOptions,
BlobDownloadOptions
} from '@azure/storage-blob'
export async function DownloadCacheFile(
signedUploadURL: string,
archivePath: string,
archivePath: string
): Promise<{}> {
const downloadOptions: BlobDownloadOptions = {
maxRetryRequests: 5,
maxRetryRequests: 5
}
// TODO: tighten the configuration and pass the appropriate user-agent
@@ -21,5 +21,10 @@ export async function DownloadCacheFile(
core.debug(`BlobClient: ${JSON.stringify(blobClient)}`)
core.debug(`blockBlobClient: ${JSON.stringify(blockBlobClient)}`)
return blockBlobClient.downloadToFile(archivePath, 0, undefined, downloadOptions)
}
return blockBlobClient.downloadToFile(
archivePath,
0,
undefined,
downloadOptions
)
}