codec: fix noop #146
| @@ -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: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user