diff --git a/pkg/types/status.go b/pkg/types/status.go index 93dba2c8..c1385840 100644 --- a/pkg/types/status.go +++ b/pkg/types/status.go @@ -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()) }