Fix 'errcheck' linter warnings (#2093)

This commit is contained in:
Dmitry Kutakov
2019-10-27 06:58:59 +01:00
committed by thinkerou
parent 8a1bfcfd3b
commit 393a63f3b0
5 changed files with 25 additions and 8 deletions

View File

@ -347,7 +347,10 @@ func TestRenderRedirect(t *testing.T) {
}
w = httptest.NewRecorder()
assert.PanicsWithValue(t, "Cannot redirect with status code 200", func() { data2.Render(w) })
assert.PanicsWithValue(t, "Cannot redirect with status code 200", func() {
err := data2.Render(w)
assert.NoError(t, err)
})
data3 := Redirect{
Code: http.StatusCreated,