We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e20a9d5 commit 5294cedCopy full SHA for 5294ced
npm/weval/index.js
@@ -34,23 +34,6 @@ async function getWeval() {
34
);
35
}
36
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
-
54
const platformName = getPlatformName();
55
const assetSuffix = platform == "win32" ? "zip" : "tar.xz";
56
const exeSuffix = platform == "win32" ? ".exe" : "";
0 commit comments