From f6d3681212aabeea22c37cd6a9e0d32da25f8bee Mon Sep 17 00:00:00 2001
From: Binrui Dong <brett.browning.dong@gmail.com>
Date: Tue, 11 Apr 2023 20:11:34 +0800
Subject: [PATCH] Rebuild index.js

---
 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
     });
 }