From e3b63a8160f79de2f96da5780d595180f548cb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 26 Apr 2024 09:42:30 +0200 Subject: [PATCH] Run `standard --fix` --- versions.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/versions.js b/versions.js index f1ab138..b70e394 100644 --- a/versions.js +++ b/versions.js @@ -10,7 +10,6 @@ function extForPlatform (platform) { }[platform] } - function resolveCommit (arch, platform, version) { const ext = extForPlatform(platform) const resolvedOs = { @@ -24,8 +23,8 @@ function resolveCommit (arch, platform, version) { arm64: 'aarch64', ppc64: 'powerpc64', riscv64: 'riscv64', - x64: 'x86_64', - } [arch] + x64: 'x86_64' + }[arch] const downloadUrl = `https://ziglang.org/builds/zig-${resolvedOs}-${resolvedArch}-${version}.${ext}` const variantName = `zig-${resolvedOs}-${resolvedArch}-${version}` @@ -58,8 +57,8 @@ async function resolveVersion (arch, platform, version) { arm64: 'aarch64', ppc64: 'powerpc64', riscv64: 'riscv64', - x64: 'x86_64', - } [arch] + x64: 'x86_64' + }[arch] const host = `${resolvedArch}-${resolvedOs}`