From 6a3869707da1ffff7c196fcbcac44c92dcdd5350 Mon Sep 17 00:00:00 2001 From: mokeko Date: Sat, 29 Apr 2023 11:03:00 +0900 Subject: [PATCH] remove 'foo' above resolver --- plugin/resolvergen/resolver.go | 2 +- plugin/resolvergen/testdata/singlefile/out/resolver.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin/resolvergen/resolver.go b/plugin/resolvergen/resolver.go index 2bc714a795..5826a93c72 100644 --- a/plugin/resolvergen/resolver.go +++ b/plugin/resolvergen/resolver.go @@ -68,7 +68,7 @@ func (m *Plugin) generateSingleFile(data *codegen.Data) error { continue } - resolver := Resolver{o, f, nil, "// foo", `panic("not implemented")`} + resolver := Resolver{o, f, nil, "", `panic("not implemented")`} file.Resolvers = append(file.Resolvers, &resolver) } } diff --git a/plugin/resolvergen/testdata/singlefile/out/resolver.go b/plugin/resolvergen/testdata/singlefile/out/resolver.go index b4bc684e95..54d778636a 100644 --- a/plugin/resolvergen/testdata/singlefile/out/resolver.go +++ b/plugin/resolvergen/testdata/singlefile/out/resolver.go @@ -8,12 +8,10 @@ import ( type CustomResolverType struct{} -// // foo func (r *queryCustomResolverType) Resolver(ctx context.Context) (*Resolver, error) { panic("not implemented") } -// // foo func (r *resolverCustomResolverType) Name(ctx context.Context, obj *Resolver) (string, error) { panic("not implemented") }