From 57306597d2cd83675b4ec552247335f9ada49843 Mon Sep 17 00:00:00 2001 From: Teppei Fukuda Date: Tue, 10 Sep 2024 13:24:29 +0400 Subject: [PATCH] fix: do not use a pointer receiver for Status.MarshalJSON (#436) Signed-off-by: knqyf263 --- pkg/types/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }