Skip to content

Commit

Permalink
remove "<TYPE> is already declared" log
Browse files Browse the repository at this point in the history
  • Loading branch information
Hvitgar committed May 3, 2024
1 parent 12f30a0 commit 8766e14
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clientgen/source_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8766e14

Please sign in to comment.