From 375083ed54c8a4cdeb42a2f2317ef9c3849796d2 Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Mon, 17 Jul 2017 17:30:00 +0800 Subject: [PATCH] style(msgpack): remove redundant comments --- binding/msgpack.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/binding/msgpack.go b/binding/msgpack.go index 69367175..7faea4b5 100644 --- a/binding/msgpack.go +++ b/binding/msgpack.go @@ -17,12 +17,8 @@ func (msgpackBinding) Name() string { } func (msgpackBinding) Bind(req *http.Request, obj interface{}) error { - if err := codec.NewDecoder(req.Body, new(codec.MsgpackHandle)).Decode(&obj); err != nil { - //var decoder *codec.Decoder = codec.NewDecoder(req.Body, &codec.MsgpackHandle) - //if err := decoder.Decode(&obj); err != nil { return err } return validate(obj) - }