Skip to content

Commit

Permalink
pkg/fixedpoint: support "" on fixedpoint.Value.unmarshalJson
Browse files Browse the repository at this point in the history
  • Loading branch information
bailantaotao committed Jan 14, 2024
1 parent b352ae8 commit 228bfba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fixedpoint/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (v *Value) UnmarshalJSON(data []byte) error {
*v = Zero
return nil
}
if len(data) == 0 {
if len(data) == 0 || bytes.Equal(data, []byte{'"', '"'}) {
*v = Zero
return nil
}
Expand Down

0 comments on commit 228bfba

Please sign in to comment.