mirror of https://github.com/gin-gonic/gin.git
fix:shadow: declaration of "err" shadows declaration at line 304
This commit is contained in:
parent
ebbd99aefd
commit
b68a761dc9
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue