Skip to content

Commit

Permalink
Fix improper error handling in infinity float (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuskoman authored Oct 14, 2024
1 parent 7a7e6a5 commit 0781568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fetcher/responses/nodestats_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ func (i *InfinityFloat) UnmarshalJSON(data []byte) error {
*i = InfinityFloat(math.Inf(-1))
return nil
}
fmt.Errorf("Invalid string value for InfinityFloat: %s", s)

return fmt.Errorf("invalid string value for InfinityFloat: %s", s)
}

var f float64
Expand Down

0 comments on commit 0781568

Please sign in to comment.