diff options
Diffstat (limited to 'entities/common/status.go')
-rw-r--r-- | entities/common/status.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/entities/common/status.go b/entities/common/status.go index 6859891a3..0d789dca5 100644 --- a/entities/common/status.go +++ b/entities/common/status.go @@ -61,9 +61,9 @@ func (s Status) Validate() error { func (s Status) MarshalGQL(w io.Writer) { switch s { case OpenStatus: - _, _ = fmt.Fprintf(w, strconv.Quote("OPEN")) + _, _ = w.Write([]byte(strconv.Quote("OPEN"))) case ClosedStatus: - _, _ = fmt.Fprintf(w, strconv.Quote("CLOSED")) + _, _ = w.Write([]byte(strconv.Quote("CLOSED"))) default: panic("missing case") } |