Bump staticcheck-action to v1.4.1

While at it, also removing the unmatched //lint line.
This commit is contained in:
Cuong Manh Le
2026-08-21 15:38:35 +07:00
parent 6615e431dc
commit 30acb846ca
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -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 }}
-1
View File
@@ -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