Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Oct 26, 2023
1 parent 6eedee3 commit e5d47a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func ptrValueDecoder(typ reflect.Type) decoderFunc {
return func(d *Decoder, v reflect.Value) error {
if d.hasNilCode() {
if !v.IsNil() {
v.Set(reflect.Zero(v.Type()))
v.Set(d.newValue(typ).Elem())
}
return d.DecodeNil()
}
Expand Down

0 comments on commit e5d47a2

Please sign in to comment.