From d7b3c98fcdb1eb2b5d8eb06cb3b437082dd7a602 Mon Sep 17 00:00:00 2001 From: Spencer Schrock Date: Wed, 18 Oct 2023 15:28:25 -0700 Subject: [PATCH] fix mirror linter Signed-off-by: Spencer Schrock --- .golangci.yml | 1 + cmd/internal/nuget/client_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index f3357120065..f5483f38e7f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -50,6 +50,7 @@ linters: - ineffassign - lll - makezero + - mirror - misspell - nakedret - nestif diff --git a/cmd/internal/nuget/client_test.go b/cmd/internal/nuget/client_test.go index 31ded229bb8..af48233ca36 100644 --- a/cmd/internal/nuget/client_test.go +++ b/cmd/internal/nuget/client_test.go @@ -618,6 +618,6 @@ func testResult(wantErr bool, responseFileName string) (*http.Response, error) { } return &http.Response{ StatusCode: http.StatusOK, - Body: io.NopCloser(bytes.NewBufferString(string(content))), + Body: io.NopCloser(bytes.NewBuffer(content)), }, nil }