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

View File

@ -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)
}