Skip to content

Commit

Permalink
Simplify implicit external check
Browse files Browse the repository at this point in the history
  • Loading branch information
jclyons52 committed Dec 5, 2022
1 parent 8d4973a commit 3c39158
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugin/federation/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ type Requires struct {

func (e *Entity) allFieldsAreExternal(federationVersion int) bool {
for _, field := range e.Def.Fields {
if field.Directives.ForName("external") == nil {
if e.isFieldImplicitlyExternal(field, federationVersion) {
continue
}
if !e.isFieldImplicitlyExternal(field, federationVersion) && field.Directives.ForName("external") == nil {
return false
}
}
Expand Down

0 comments on commit 3c39158

Please sign in to comment.