Browse Source

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

Eason Lin 8 năm trước cách đây
mục cha
commit
8f861946b0
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  1. 0 4
      binding/msgpack.go

+ 0 - 4
binding/msgpack.go

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