From 2585f435af27239f82b7b99d5f574fb2dc18e6e3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 00:49:43 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From ae9849d6ceb2405ce56a1ade177d2c89e44ea5c4 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Mon, 12 Feb 2024 17:21:06 -0800 Subject: [PATCH 2/2] Fix linter --- client/nginx_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)