ci: update golangci-lint to v1.62.0 (#4725)

This commit is contained in:
Marten Seemann
2024-11-18 16:01:39 +01:00
committed by GitHub
parent 21219d1122
commit 3e0a67b247
4 changed files with 2 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ jobs:
matrix:
go: [ "1.22.x", "1.23.x" ]
env:
GOLANGCI_LINT_VERSION: v1.60.1
GOLANGCI_LINT_VERSION: v1.62.0
name: golangci-lint (Go ${{ matrix.go }})
steps:
- uses: actions/checkout@v4

View File

@@ -16,9 +16,9 @@ linters:
disable-all: true
enable:
- asciicheck
- copyloopvar
- depguard
- exhaustive
- exportloopref
- goimports
- gofmt # redundant, since gofmt *should* be a no-op after gofumpt
- gofumpt

View File

@@ -1639,7 +1639,6 @@ var _ = Describe("Connection", func() {
})
for _, withGSO := range []bool{false, true} {
withGSO := withGSO
It(fmt.Sprintf("doesn't try to send if the send queue is full: %t", withGSO), func() {
if withGSO {
enableGSO()

View File

@@ -257,7 +257,6 @@ var _ = Describe("Connection", func() {
})
for _, pers := range []protocol.Perspective{protocol.PerspectiveServer, protocol.PerspectiveClient} {
pers := pers
expectedErr := ErrCodeIDError
if pers == protocol.PerspectiveClient {
expectedErr = ErrCodeStreamCreationError