From afa8357006708174b83703d2ccd123f04a4cb2cb Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Thu, 19 Oct 2023 19:04:30 -0400 Subject: [PATCH] Remove Broken Code --- src/upload.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/upload.ts b/src/upload.ts index d6d7650..b9f21ed 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -28,14 +28,10 @@ async function processSkin(imageUrl: string) { console.log(`IMAGE: ${imageUrl}`); // Download Image - const response = await fetch(imageUrl, { - headers: { - Authorization: `Bearer ${process.env['GITHUB_TOKEN']}` - } - }); + const response = await fetch(imageUrl); if (response.status !== 200) { // Failed To Download Image - finish('Unable to downlaod skin!'); + await finish('Unable to downlaod skin!'); return; } const arrayBuffer = await response.arrayBuffer();