@@ -66,7 +66,7 @@ func (e *SessionRequirement) UnmarshalGQL(v any) error {
|
||||
}
|
||||
|
||||
func (e SessionRequirement) MarshalGQL(w io.Writer) {
|
||||
fmt.Fprint(w, strconv.Quote(e.String()))
|
||||
_, _ = fmt.Fprint(w, strconv.Quote(e.String()))
|
||||
}
|
||||
|
||||
func (e *SessionRequirement) UnmarshalJSON(b []byte) error {
|
||||
|
||||
@@ -26,7 +26,7 @@ type BigIntScalar = int64
|
||||
|
||||
func MarshalBigIntScalar(i int64) graphql.Marshaler {
|
||||
return graphql.WriterFunc(func(w io.Writer) {
|
||||
w.Write([]byte(strconv.FormatInt(i, 10)))
|
||||
_, _ = w.Write([]byte(strconv.FormatInt(i, 10)))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -26,9 +26,11 @@ import (
|
||||
type GIDScalar = gid.GID
|
||||
|
||||
func MarshalGIDScalar(id gid.GID) graphql.Marshaler {
|
||||
return graphql.WriterFunc(func(w io.Writer) {
|
||||
w.Write([]byte(strconv.Quote(id.String())))
|
||||
})
|
||||
return graphql.WriterFunc(
|
||||
func(w io.Writer) {
|
||||
_, _ = w.Write([]byte(strconv.Quote(id.String())))
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
func UnmarshalGIDScalar(v interface{}) (gid.GID, error) {
|
||||
|
||||
@@ -26,9 +26,11 @@ import (
|
||||
type AddrScalar = mail.Addr
|
||||
|
||||
func MarshalAddrScalar(a mail.Addr) graphql.Marshaler {
|
||||
return graphql.WriterFunc(func(w io.Writer) {
|
||||
w.Write([]byte(strconv.Quote(a.String())))
|
||||
})
|
||||
return graphql.WriterFunc(
|
||||
func(w io.Writer) {
|
||||
_, _ = w.Write([]byte(strconv.Quote(a.String())))
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
func UnmarshalAddrScalar(v interface{}) (mail.Addr, error) {
|
||||
|
||||
Reference in New Issue
Block a user