diff --git a/render/render_test.go b/render/render_test.go index 353c82bb..7fd066b9 100644 --- a/render/render_test.go +++ b/render/render_test.go @@ -322,8 +322,7 @@ func TestRenderRedirect(t *testing.T) { w = httptest.NewRecorder() assert.PanicsWithValue(t, "Cannot redirect with status code 200", func() { - err := data2.Render(w) - assert.NoError(t, err) + assert.NoError(t, data2.Render(w)) }) data3 := Redirect{