Skip to content

Commit

Permalink
Unfix the previous fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
krypciak committed Feb 9, 2024
1 parent 1435c59 commit 64d30e3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build/src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,8 @@ async function getUsingMethod(url: string, method: string): Promise<http.Incomin
const uri = urlModule.parse(url)
const { get } = uri.protocol === 'https:' ? https : http

const GITHUB_TOKEN = process.env['GITHUB_TOKEN']
const options: http.RequestOptions = {
method,
headers: !GITHUB_TOKEN
? undefined
: {
Authorization: `token ${GITHUB_TOKEN}`,
},
}

return new Promise((resolve, reject) =>
Expand Down

0 comments on commit 64d30e3

Please sign in to comment.