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 }