Skip to content

Commit ca54644

Browse files
authored
Fix for sizer when nil value is passed. (#9)
1 parent 6076cc9 commit ca54644

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sizer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ func (s *Sizer) WriteNillableFloat64(value *float64) {
341341
func (s *Sizer) WriteAny(value any) {
342342
if value == nil {
343343
s.WriteNil()
344+
return
344345
}
345346
switch v := value.(type) {
346347
case nil:

0 commit comments

Comments
 (0)