summaryrefslogtreecommitdiffstatshomepage
path: root/entities
diff options
context:
space:
mode:
Diffstat (limited to 'entities')
-rw-r--r--entities/bug/op_label_change.go10
-rw-r--r--entities/common/status.go4
2 files changed, 7 insertions, 7 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")
}
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")
}