From 8f0470a08cd0539fecf99af2aba1898fc683f329 Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> Date: Tue, 11 Apr 2023 11:43:57 +0000 Subject: [PATCH] Check in current index.js after build --- dist/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 5ff6a5f..00db935 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1554,9 +1554,6 @@ function downloadArchive(authToken, owner, repo, ref, commit, baseUrl) { repo: repo, ref: commit || ref }); - if (response.status != 302) { - throw new Error(`Unexpected response from GitHub API. Status: ${response.status}, Data: ${response.data}`); - } return Buffer.from(response.data); // response.data is ArrayBuffer }); }