From 4f3f314e286d3760433769ed2d1cfeea7a85496b Mon Sep 17 00:00:00 2001 From: Rick Bijkerk Date: Mon, 28 Oct 2024 15:08:18 +0100 Subject: [PATCH] fix feedback/linter issues --- plugin/federation/federation.go | 2 +- plugin/federation/fieldset/fieldset.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/federation/federation.go b/plugin/federation/federation.go index 4569a21fd4..2af9205ff9 100644 --- a/plugin/federation/federation.go +++ b/plugin/federation/federation.go @@ -4,7 +4,6 @@ import ( _ "embed" "errors" "fmt" - "github.com/99designs/gqlgen/internal/rewrite" "sort" "strings" @@ -13,6 +12,7 @@ import ( "github.com/99designs/gqlgen/codegen" "github.com/99designs/gqlgen/codegen/config" "github.com/99designs/gqlgen/codegen/templates" + "github.com/99designs/gqlgen/internal/rewrite" "github.com/99designs/gqlgen/plugin/federation/fieldset" ) diff --git a/plugin/federation/fieldset/fieldset.go b/plugin/federation/fieldset/fieldset.go index ee356ba1ee..65b32eae28 100644 --- a/plugin/federation/fieldset/fieldset.go +++ b/plugin/federation/fieldset/fieldset.go @@ -144,7 +144,7 @@ func parseUnnestedKeyFieldSet(raw string, prefix []string) Set { continue } - if unionField == true { + if unionField { s = "... on " + s unionField = false }