Run go fmt/fix

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-03-13 14:16:00 +01:00
parent 8657761293
commit d5c62a9383
44 changed files with 319 additions and 364 deletions

View File

@@ -42,7 +42,7 @@ func (t TracingExtension) Validate(schema graphql.ExecutableSchema) error {
return nil
}
func (t TracingExtension) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error) {
func (t TracingExtension) InterceptField(ctx context.Context, next graphql.Resolver) (any, error) {
rootSpan := trace.SpanFromContext(ctx)
if rootSpan.IsRecording() {

View File

@@ -57,7 +57,7 @@ func MarshalCursorKeyScalar(ck page.CursorKey) graphql.Marshaler {
})
}
func UnmarshalCursorKeyScalar(v interface{}) (page.CursorKey, error) {
func UnmarshalCursorKeyScalar(v any) (page.CursorKey, error) {
s, ok := v.(string)
if !ok {
return page.CursorKeyNil, errors.New("must be a string")

View File

@@ -33,7 +33,7 @@ func MarshalGIDScalar(id gid.GID) graphql.Marshaler {
)
}
func UnmarshalGIDScalar(v interface{}) (gid.GID, error) {
func UnmarshalGIDScalar(v any) (gid.GID, error) {
s, ok := v.(string)
if !ok {
return gid.Nil, errors.New("must be a string")

View File

@@ -33,7 +33,7 @@ func MarshalAddrScalar(a mail.Addr) graphql.Marshaler {
)
}
func UnmarshalAddrScalar(v interface{}) (mail.Addr, error) {
func UnmarshalAddrScalar(v any) (mail.Addr, error) {
s, ok := v.(string)
if !ok {
return mail.Nil, errors.New("must be a string")