Skip to content

Commit

Permalink
fix(lint): should be written without leading space
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed Feb 17, 2024
1 parent ad4c6b0 commit 45b3e72
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ import (
"github.com/stretchr/testify/assert"
)

<<<<<<< HEAD:serve_test.go
//nolint:unparam
func PerformRequest(r http.Handler, method, path string) *httptest.ResponseRecorder {
req, _ := http.NewRequest(method, path, nil)
=======
// nolint:unparam
func performRequest(r http.Handler, method, path string) *httptest.ResponseRecorder {
req, _ := http.NewRequestWithContext(context.Background(), method, path, nil)
>>>>>>> 7756450 (chore(lint): add golang lint config):static_test.go
w := httptest.NewRecorder()
r.ServeHTTP(w, req)
return w
Expand Down

0 comments on commit 45b3e72

Please sign in to comment.