diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-02-26 00:25:35 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-26 13:25:35 +0800 |
commit | 831ff417547f0f0a26c75288bdb790ea40087c0c (patch) | |
tree | 175814a4488888916f15e006aec58d7a50d253b2 /routers/api/v1/misc | |
parent | bf24099114d75dbc625bc8385a0a7d969d0c3748 (diff) | |
download | gitea-831ff417547f0f0a26c75288bdb790ea40087c0c.tar.gz gitea-831ff417547f0f0a26c75288bdb790ea40087c0c.zip |
Fix go vet faults (#1060)
Diffstat (limited to 'routers/api/v1/misc')
-rw-r--r-- | routers/api/v1/misc/markdown_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/misc/markdown_test.go b/routers/api/v1/misc/markdown_test.go index ae7a445e86..182b147820 100644 --- a/routers/api/v1/misc/markdown_test.go +++ b/routers/api/v1/misc/markdown_test.go @@ -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) |