Skip to content

Commit

Permalink
Update codec/reflectcodec/type_codec.go
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Laine <[email protected]>
Signed-off-by: Cesar <[email protected]>
  • Loading branch information
nytzuga and Dan Laine authored Nov 1, 2023
1 parent 79f8e3b commit 4d6c4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codec/reflectcodec/type_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (c *genericCodec) Size(value interface{}) (int, error) {
return 0, errMarshalNil // can't marshal nil
}

size, _, err := c.size(reflect.ValueOf(value), false)
size, _, err := c.size(reflect.ValueOf(value), false /*nullable*/)
return size, err
}

Expand Down

0 comments on commit 4d6c4cf

Please sign in to comment.