fix(lint): should be written without leading space
This commit is contained in:
parent
ad4c6b0b31
commit
45b3e72f18
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue