codec: fix noop

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2022-10-26 13:37:30 +03:00
parent 4120f79b55
commit 817bf1f4d0

View File

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