diff options
Diffstat (limited to 'entities/bug/op_label_change.go')
-rw-r--r-- | entities/bug/op_label_change.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/entities/bug/op_label_change.go b/entities/bug/op_label_change.go index 6a9fb19bf..cf8adfb75 100644 --- a/entities/bug/op_label_change.go +++ b/entities/bug/op_label_change.go @@ -236,15 +236,15 @@ const ( func (l LabelChangeStatus) MarshalGQL(w io.Writer) { switch l { case LabelChangeAdded: - _, _ = fmt.Fprintf(w, strconv.Quote("ADDED")) + _, _ = w.Write([]byte(strconv.Quote("ADDED"))) case LabelChangeRemoved: - _, _ = fmt.Fprintf(w, strconv.Quote("REMOVED")) + _, _ = w.Write([]byte(strconv.Quote("REMOVED"))) case LabelChangeDuplicateInOp: - _, _ = fmt.Fprintf(w, strconv.Quote("DUPLICATE_IN_OP")) + _, _ = w.Write([]byte(strconv.Quote("DUPLICATE_IN_OP"))) case LabelChangeAlreadySet: - _, _ = fmt.Fprintf(w, strconv.Quote("ALREADY_EXIST")) + _, _ = w.Write([]byte(strconv.Quote("ALREADY_EXIST"))) case LabelChangeDoesntExist: - _, _ = fmt.Fprintf(w, strconv.Quote("DOESNT_EXIST")) + _, _ = w.Write([]byte(strconv.Quote("DOESNT_EXIST"))) default: panic("missing case") } |