diff --git a/middleware.go b/middleware.go index 6a1e167..a1ab583 100644 --- a/middleware.go +++ b/middleware.go @@ -22,12 +22,6 @@ func (s *Sender) Send(ctx *gear.Context, code int, data interface{}) (err error) return ctx.JSON(code, data) } - defer func() { - if recover() != nil { - err = ctx.JSON(code, data) - } - }() - maskedData, err := mask.Mask(data, ctx.Query(s.query)) if err != nil {