mirror of
https://github.com/actions/checkout.git
synced 2025-04-01 22:10:06 +02:00
Remove unnecessary error check on downloadarchive
This commit is contained in:
parent
d2dd12978c
commit
9355fc0a70
1 changed files with 0 additions and 5 deletions
|
@ -134,11 +134,6 @@ async function downloadArchive(
|
||||||
repo: repo,
|
repo: repo,
|
||||||
ref: commit || ref
|
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
|
return Buffer.from(response.data as ArrayBuffer) // response.data is ArrayBuffer
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue