style(msgpack): remove redundant comments (#1027)

This commit is contained in:
Eason Lin 2017-07-17 18:57:59 +08:00 committed by Bo-Yi Wu
parent 8678b3df96
commit 8f861946b0
1 changed files with 0 additions and 4 deletions

View File

@ -17,12 +17,8 @@ func (msgpackBinding) Name() string {
} }
func (msgpackBinding) Bind(req *http.Request, obj interface{}) error { func (msgpackBinding) Bind(req *http.Request, obj interface{}) error {
if err := codec.NewDecoder(req.Body, new(codec.MsgpackHandle)).Decode(&obj); err != nil { 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 err
} }
return validate(obj) return validate(obj)
} }