Compare commits

..

No commits in common. "v3" and "v3.10.5" have entirely different histories.
v3 ... v3.10.5

View File

@ -153,10 +153,6 @@ func (c *jsonpbCodecV2) Marshal(d []byte, v interface{}, opts ...codec.Option) (
}
}
return marshalOptions.MarshalAppend(d[:0], m)
case codec.RawMessage:
return []byte(m), nil
case *codec.RawMessage:
return []byte(*m), nil
default:
return nil, codec.ErrInvalidMessage
}