Skip to content

Commit

Permalink
fix: do not use a pointer receiver for Status.MarshalJSON (#436)
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <knqyf263@gmail.com>
  • Loading branch information
knqyf263 authored Sep 10, 2024
1 parent 42b851c commit 5730659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *Status) Index() int {
return int(*s)
}

func (s *Status) MarshalJSON() ([]byte, error) {
func (s Status) MarshalJSON() ([]byte, error) {
return json.Marshal(s.String())
}

Expand Down

0 comments on commit 5730659

Please sign in to comment.