Merge pull request #146 from unistack-org/codec_noop_fix

codec: fix noop
This commit is contained in:
Василий Толстов 2022-10-26 13:39:52 +03:00 committed by GitHub
commit 91701e7a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,6 @@ func (c *noopCodec) Unmarshal(d []byte, v interface{}, opts ...Option) error {
*ve = string(d) *ve = string(d)
return nil return nil
case []byte: case []byte:
ve = make([]byte, len(d))
copy(ve, d) copy(ve, d)
return nil return nil
case *[]byte: case *[]byte: