Skip to content

Commit

Permalink
Remove Broken Code
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBrokenRail committed Oct 19, 2023
1 parent 9a218d1 commit afa8357
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit afa8357

Please sign in to comment.