mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +08:00
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…
x
Reference in New Issue
Block a user