Rename IsEmpty

This commit is contained in:
andig 2025-02-17 23:01:33 +01:00
parent 16821360fe
commit e43e2154d8
4 changed files with 11 additions and 7 deletions

View file

@ -14,8 +14,8 @@ type Rate struct {
Price float64 `json:"price"`
}
// IsEmpty returns is the rate is the zero value
func (r Rate) IsEmpty() bool {
// IsZero returns is the rate is the zero value
func (r Rate) IsZero() bool {
return r.Start.IsZero() && r.End.IsZero() && r.Price == 0
}