From 8766e143438ad9a20b1ae350d5081296a9f168da Mon Sep 17 00:00:00 2001 From: Benjamin Mitzkus Date: Fri, 3 May 2024 19:19:56 +0200 Subject: [PATCH] remove " is already declared" log --- clientgen/source_generator.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clientgen/source_generator.go b/clientgen/source_generator.go index ff3c797..9c0cedb 100644 --- a/clientgen/source_generator.go +++ b/clientgen/source_generator.go @@ -2,14 +2,15 @@ package clientgen import ( "fmt" - "github.com/99designs/gqlgen/codegen/config" - "github.com/99designs/gqlgen/codegen/templates" - config2 "github.com/Hvitgar/gqlgenc/config" - "github.com/vektah/gqlparser/v2/ast" "go/types" "math" "sort" "strings" + + "github.com/99designs/gqlgen/codegen/config" + "github.com/99designs/gqlgen/codegen/templates" + config2 "github.com/Hvitgar/gqlgenc/config" + "github.com/vektah/gqlparser/v2/ast" ) type FieldPath struct { @@ -243,7 +244,6 @@ func (r *SourceGenerator) namedType(path FieldPath, gen func() types.Type) types if r.cfg.Models.Exists(fullname) && len(r.cfg.Models[fullname].Model) > 0 { model := r.cfg.Models[fullname].Model[0] - fmt.Printf("%s is already declared: %v\n", fullname, model) typ, err := r.binder.FindTypeFromName(model) if err != nil {