Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentysc committed Dec 1, 2024
1 parent cefcd88 commit c7b8e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usecase/model/duration.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ type Duration struct {
time.Duration
}

func (d *Duration) MarshalJSON() ([]byte, error) {
func (d Duration) MarshalJSON() ([]byte, error) {
return jsoniter.Marshal(d.String())
}

func (d Duration) UnmarshalJSON(b []byte) error {
func (d *Duration) UnmarshalJSON(b []byte) error {
var v interface{}
if err := jsoniter.Unmarshal(b, &v); err != nil {
return err
Expand Down

0 comments on commit c7b8e5e

Please sign in to comment.