0
1
mirror of https://github.com/actions/checkout synced 2024-06-01 18:38:03 +02:00

Remove unnecessary error check on downloadarchive

This commit is contained in:
Ferenc Hammerl 2023-04-11 11:43:19 +00:00
parent d2dd12978c
commit 9355fc0a70

View File

@ -134,11 +134,6 @@ async function downloadArchive(
repo: repo,
ref: commit || ref
})
if (response.status != 200) {
throw new Error(
`Unexpected response from GitHub API. Status: ${response.status}, Data: ${response.data}`
)
}
return Buffer.from(response.data as ArrayBuffer) // response.data is ArrayBuffer
}