Skip to content

Commit

Permalink
Remove AbortController (unused now that tags are fetched synchronousl…
Browse files Browse the repository at this point in the history
…y, so we can handle errors)
  • Loading branch information
iainmerrick committed Nov 1, 2023
1 parent 4a14513 commit dbd7db6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/goproxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ export function goproxy(
return;
}

const { signal, abort } = new AbortController();

const API = "https://api.github.com";
const NEXT_LINK = /(?<=<)([\S]*)(?=>; rel="Next")/i;

Expand All @@ -85,7 +83,7 @@ export function goproxy(
for (const [k, v] of Object.entries(extraHeaders)) {
headers.set(k, v);
}
const response = await fetch(url.href, { signal, headers });
const response = await fetch(url.href, { headers });
if (!response.ok) {
throw response;
}
Expand Down

0 comments on commit dbd7db6

Please sign in to comment.