Fix golint errors

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-02-02 15:24:11 +01:00
parent b11ce54ccc
commit ece54f1616
38 changed files with 134 additions and 204 deletions

View File

@@ -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 {

View File

@@ -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)))
})
}

View File

@@ -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) {

View File

@@ -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) {