fix(lint): should be written without leading space

This commit is contained in:
Bo-Yi Wu 2024-02-17 16:09:05 +08:00
parent ad4c6b0b31
commit 45b3e72f18
No known key found for this signature in database
1 changed files with 1 additions and 6 deletions

View File

@ -14,14 +14,9 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )
<<<<<<< HEAD:serve_test.go
func PerformRequest(r http.Handler, method, path string) *httptest.ResponseRecorder {
req, _ := http.NewRequest(method, path, nil)
=======
//nolint:unparam //nolint:unparam
func performRequest(r http.Handler, method, path string) *httptest.ResponseRecorder { func PerformRequest(r http.Handler, method, path string) *httptest.ResponseRecorder {
req, _ := http.NewRequestWithContext(context.Background(), method, path, nil) req, _ := http.NewRequestWithContext(context.Background(), method, path, nil)
>>>>>>> 7756450 (chore(lint): add golang lint config):static_test.go
w := httptest.NewRecorder() w := httptest.NewRecorder()
r.ServeHTTP(w, req) r.ServeHTTP(w, req)
return w return w