chore: add golangci-lint config file (#2519)

* chore: add golangci-lint config file

* chore: member alignment
This commit is contained in:
Kevin Wan
2022-10-14 22:45:48 +08:00
committed by GitHub
parent 776673d57d
commit d4c9fd2aff
8 changed files with 72 additions and 11 deletions

View File

@@ -86,7 +86,7 @@ func TestThenOrdersHandlersCorrectly(t *testing.T) {
chained := New(t1, t2, t3).Then(testApp)
w := httptest.NewRecorder()
r, err := http.NewRequest("GET", "/", nil)
r, err := http.NewRequest("GET", "/", http.NoBody)
if err != nil {
t.Fatal(err)
}
@@ -103,7 +103,7 @@ func TestAppendAddsHandlersCorrectly(t *testing.T) {
h := c.Then(testApp)
w := httptest.NewRecorder()
r, err := http.NewRequest("GET", "/", nil)
r, err := http.NewRequest("GET", "/", http.NoBody)
assert.Nil(t, err)
h.ServeHTTP(w, r)