mirror of
https://github.com/actions/checkout.git
synced 2025-03-14 04:14:10 +00:00
Remove unnecessary error check on downloadarchive
This commit is contained in:
parent
d2dd12978c
commit
9355fc0a70
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user