From 9355fc0a701f3a97422dce960fe26bd9eb9628f5 Mon Sep 17 00:00:00 2001
From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue, 11 Apr 2023 11:43:19 +0000
Subject: [PATCH] Remove unnecessary error check on downloadarchive

---
 src/github-api-helper.ts | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts
index 19616c3..0f5fb73 100644
--- a/src/github-api-helper.ts
+++ b/src/github-api-helper.ts
@@ -134,11 +134,6 @@ async function downloadArchive(
     repo: repo,
     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
 }