From 30acb846caf0dc3e7eb1f97782c91853f48d8406 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Fri, 21 Aug 2026 15:17:43 +0700 Subject: [PATCH] Bump staticcheck-action to v1.4.1 While at it, also removing the unmatched //lint line. --- .github/workflows/ci.yml | 6 +++--- cmd/cli/service.go | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a81bc7b..2bcc0dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: fail-fast: false matrix: os: ["windows-latest", "ubuntu-latest", "macOS-latest"] - go: ["1.25.x"] + go: ["1.26.x"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -19,8 +19,8 @@ jobs: with: go-version: ${{ matrix.go }} - run: "go test -race ./..." - - uses: dominikh/staticcheck-action@v1.4.0 + - uses: dominikh/staticcheck-action@v1.4.1 with: - version: "2026.1" + version: "2026.2" install-go: false cache-key: ${{ matrix.go }} diff --git a/cmd/cli/service.go b/cmd/cli/service.go index 3611b68..0cad94f 100644 --- a/cmd/cli/service.go +++ b/cmd/cli/service.go @@ -166,7 +166,6 @@ func ensureSystemdKillMode(r io.Reader) (opts []*unit.UnitOption, change bool) { // channel, so it reports this comparison as always true. On success the // lexer sends nothing and closes the channel, so the receive yields a nil // error and this branch is not taken. - //lint:ignore SA4023 upstream delivers a nil error by closing the channel if err != nil { mainLog.Load().Error().Err(err).Msg("failed to deserialize options") return