From 876dbbda02b7df680ef92a7249b7493814f6a9a0 Mon Sep 17 00:00:00 2001 From: chatton Date: Tue, 12 Sep 2023 13:20:15 +0100 Subject: [PATCH] chore: adding missing semicolons --- zx/ensure_golanglint_version.mjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zx/ensure_golanglint_version.mjs b/zx/ensure_golanglint_version.mjs index 474b513..d3159ec 100755 --- a/zx/ensure_golanglint_version.mjs +++ b/zx/ensure_golanglint_version.mjs @@ -4,8 +4,8 @@ $.verbose = false; async function getGoVersion() { const goVersionProcess = await $`go version`; - const re = /go version go(.*) / - return re.exec(goVersionProcess.stdout)[1] + const re = /go version go(.*) /; + return re.exec(goVersionProcess.stdout)[1]; } try { @@ -19,15 +19,15 @@ try { let re = /version:\sv(.*)/ const targetVersion = re.exec(contents)[1] - let currentVersion = await $`golangci-lint --version` - re = /golangci-lint has version (.*) built.*/ - currentVersion = re.exec(currentVersion.stdout)[1] + let currentVersion = await $`golangci-lint --version`; + re = /golangci-lint has version (.*) built.*/; + currentVersion = re.exec(currentVersion.stdout)[1]; let goVersion = await getGoVersion() goVersion = goVersion.substring(0, 4); // strip off the patch version if (currentVersion !== targetVersion) { await $`curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /Users/chatton/.gvm/pkgsets/go${goVersion}/global/bin v${targetVersion}` - console.log("updated to version " + targetVersion); + console.log("updated to golangci-lint version " + targetVersion); } } catch (e) {