From e715d333321924244d14b07cf6ada521dcd1a43d Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Tue, 10 Sep 2024 12:07:42 +0400 Subject: [PATCH] fix: do not use a pointer receiver for Status.MarshalJSON 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()) }