From b68a761dc9c20226b317b5242b38e5cb7dbcee8f Mon Sep 17 00:00:00 2001 From: daheige Date: Wed, 14 Jul 2021 22:52:21 +0800 Subject: [PATCH] fix:shadow: declaration of "err" shadows declaration at line 304 --- render/render_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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{