Skip to content

Commit

Permalink
Remove unnecessary JSON.parse()
Browse files Browse the repository at this point in the history
  • Loading branch information
iainmerrick committed Nov 1, 2023
1 parent b4f9308 commit 95d458d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/goproxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ export function goproxy(
`${github.API}/repos/${owner}/${repo}/tags`,
{ signal, headers },
)) {
const json = await page.text();
const tags = parse(github.Tags, JSON.parse(json));
const tags = parse(github.Tags, await page.json());
for (const tag of tags) {
const v = cmd === "/@v/list" ? tagToVersion(tag.name) : tag.name;
if (v) {
Expand Down

0 comments on commit 95d458d

Please sign in to comment.