Skip to content

Commit 5294ced

Browse files
author
Guy Bedford
committed
remove unused function
1 parent e20a9d5 commit 5294ced

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

npm/weval/index.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,6 @@ async function getWeval() {
3434
);
3535
}
3636

37-
async function getJSON(url) {
38-
let resp;
39-
try {
40-
resp = await fetch(url);
41-
if (!resp.ok) {
42-
throw new Error("non 2xx response code");
43-
}
44-
return resp.json();
45-
} catch (err) {
46-
const errMsg = err?.toString() ?? "unknown error";
47-
console.error(
48-
`failed to fetch JSON from URL [${url}] (status ${resp?.status}): ${errMsg}`
49-
);
50-
process.exit(1);
51-
}
52-
}
53-
5437
const platformName = getPlatformName();
5538
const assetSuffix = platform == "win32" ? "zip" : "tar.xz";
5639
const exeSuffix = platform == "win32" ? ".exe" : "";

0 commit comments

Comments
 (0)