From 8f861946b028a0b5ed4acf8df4b673e23e8c5634 Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Mon, 17 Jul 2017 18:57:59 +0800 Subject: [PATCH] style(msgpack): remove redundant comments (#1027) --- binding/msgpack.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/binding/msgpack.go b/binding/msgpack.go index 69367175b6..7faea4b5cd 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) - }