1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-15 01:34:53 +02:00

remove some unused code (#2116)

* remove unused code
This commit is contained in:
eric
2022-03-13 21:31:39 +08:00
committed by GitHub
parent 3f5b733425
commit 54efc3850d
2 changed files with 1 additions and 32 deletions

View File

@ -54,7 +54,7 @@ func TestBindingError_Error(t *testing.T) {
func TestBindingError_ErrorJSON(t *testing.T) {
err := NewBindingError("id", []string{"1", "nope"}, "bind failed", errors.New("internal error"))
resp, err := json.Marshal(err)
resp, _ := json.Marshal(err)
assert.Equal(t, `{"field":"id","message":"bind failed"}`, string(resp))
}