Skip to content

Commit

Permalink
style(msgpack): remove redundant comments (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
easonlin404 authored and appleboy committed Jul 17, 2017
1 parent 8678b3d commit 8f86194
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions binding/msgpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}

0 comments on commit 8f86194

Please sign in to comment.