Fix 'errcheck' linter warnings (#2093)
This commit is contained in:
committed by
thinkerou
parent
8a1bfcfd3b
commit
393a63f3b0
@ -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,
|
||||
|
Reference in New Issue
Block a user