diff --git a/bill/outlay.go b/bill/outlay.go index b6cfdb95..883b7240 100644 --- a/bill/outlay.go +++ b/bill/outlay.go @@ -50,7 +50,7 @@ func (o *Outlay) Validate() error { // UnmarshalJSON helps migrate the desc field to description. func (o *Outlay) UnmarshalJSON(data []byte) error { type Alias Outlay - aux := &struct { + aux := struct { Desc string `json:"desc"` *Alias }{ diff --git a/pay/advance.go b/pay/advance.go index 40ef7fd5..bb515ffb 100644 --- a/pay/advance.go +++ b/pay/advance.go @@ -74,7 +74,7 @@ func (a *Advance) CalculateFrom(totalWithTax num.Amount) { // UnmarshalJSON helps migrate the desc field to description. func (a *Advance) UnmarshalJSON(data []byte) error { type Alias Advance - aux := &struct { + aux := struct { Desc string `json:"desc,omitempty"` *Alias }{ diff --git a/tax/set.go b/tax/set.go index e8fe68a9..4f9b0c4b 100644 --- a/tax/set.go +++ b/tax/set.go @@ -133,7 +133,7 @@ func (c *Combo) prepare(r *Regime, zone l10n.Code, date cal.Date) error { // the rate field. func (c *Combo) UnmarshalJSON(data []byte) error { type Alias Combo - aux := &struct { + aux := struct { *Alias Tags []cbc.Key `json:"tags"` }{