mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 09:48:32 +02:00
chore: apply golangci-lint fmt
This commit is contained in:
@@ -46,7 +46,7 @@ func BenchmarkRules(b *testing.B) {
|
||||
})
|
||||
|
||||
b.Run("RunHandler", func(b *testing.B) {
|
||||
var r = &http.Request{
|
||||
r := &http.Request{
|
||||
Body: io.NopCloser(bytes.NewReader([]byte(""))),
|
||||
URL: &url.URL{Path: "/api/users/"},
|
||||
}
|
||||
@@ -59,8 +59,7 @@ func BenchmarkRules(b *testing.B) {
|
||||
})
|
||||
}
|
||||
|
||||
type noopResponseWriter struct {
|
||||
}
|
||||
type noopResponseWriter struct{}
|
||||
|
||||
func (w noopResponseWriter) Header() http.Header {
|
||||
return http.Header{}
|
||||
|
||||
Reference in New Issue
Block a user