refactor(struct): Remove redundant type conversions (#3345)

This commit is contained in:
hopehook
2022-10-16 09:49:24 +08:00
committed by GitHub
parent 45c758e2f9
commit 33ab0fc155
3 changed files with 7 additions and 11 deletions

View File

@ -173,7 +173,7 @@ func TestRenderAsciiJSON(t *testing.T) {
assert.Equal(t, "application/json", w1.Header().Get("Content-Type"))
w2 := httptest.NewRecorder()
data2 := float64(3.1415926)
data2 := 3.1415926
err = (AsciiJSON{data2}).Render(w2)
assert.NoError(t, err)