forked from NYANDEV/forgejo
Fix go vet faults (#1060)
This commit is contained in:
parent
bf24099114
commit
831ff41754
2 changed files with 10 additions and 4 deletions
|
@ -28,9 +28,9 @@ func createContext(req *http.Request) (*macaron.Context, *httptest.ResponseRecor
|
|||
resp := httptest.NewRecorder()
|
||||
c := &macaron.Context{
|
||||
Injector: inject.New(),
|
||||
Req: macaron.Request{req},
|
||||
Req: macaron.Request{Request: req},
|
||||
Resp: macaron.NewResponseWriter(resp),
|
||||
Render: &macaron.DummyRender{resp},
|
||||
Render: &macaron.DummyRender{ResponseWriter: resp},
|
||||
Data: make(map[string]interface{}),
|
||||
}
|
||||
c.Map(c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue