fix:shadow: declaration of "err" shadows declaration at line 304

This commit is contained in:
daheige 2021-07-14 22:52:21 +08:00
parent ebbd99aefd
commit b68a761dc9
1 changed files with 1 additions and 2 deletions

View File

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