mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2025-12-31 15:02:19 +00:00
chore: replace magic number
Signed-off-by: Devin <hoopysoup@users.noreply.github.com>
This commit is contained in:
parent
498714b0a0
commit
d12cc3c928
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
|
@ -47,7 +47,7 @@ async function fetchReleases (githubToken) {
|
|||
|
||||
const resp = await http.get(url, headers);
|
||||
|
||||
if (resp.message.statusCode !== 200) {
|
||||
if (resp.message.statusCode !== hc.HttpCodes.OK) {
|
||||
throw new Error('failed fetching releases (' + resp.message.statusCode + ')');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ async function fetchReleases (githubToken) {
|
|||
|
||||
const resp = await http.get(url, headers);
|
||||
|
||||
if (resp.message.statusCode !== 200) {
|
||||
if (resp.message.statusCode !== hc.HttpCodes.OK) {
|
||||
throw new Error('failed fetching releases (' + resp.message.statusCode + ')');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue