From e9692b620ab1754b91303b1189fd436349bb9091 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:24:26 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#227) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/golangci/golangci-lint: v1.55.2 → v1.56.1](https://github.com/golangci/golangci-lint/compare/v1.55.2...v1.56.1) * Fix linter --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Luca Comellini --- .pre-commit-config.yaml | 2 +- client/nginx_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8fd4c488..30048641 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: fix-byte-order-marker - repo: https://github.com/golangci/golangci-lint - rev: v1.55.2 + rev: v1.56.1 hooks: - id: golangci-lint-full diff --git a/client/nginx_test.go b/client/nginx_test.go index bb901db0..fdbb32ef 100644 --- a/client/nginx_test.go +++ b/client/nginx_test.go @@ -524,7 +524,7 @@ func TestHaveSameParametersForStream(t *testing.T) { func TestClientWithCheckAPI(t *testing.T) { // Create a test server that returns supported API versions - ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { _, err := w.Write([]byte(`[4, 5, 6, 7, 8, 9]`)) if err != nil { t.Fatalf("unexpected error: %v", err)