Skip to content

Commit 47cc819

Browse files
committed
Use leaf? check instead of !fields?
1 parent 6ea6508 commit 47cc819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/graphql/static_validation/rules/fields_will_merge.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def return_types_conflict?(type1, type2)
269269
end
270270
elsif type2.non_null?
271271
true
272-
elsif !type1.kind.fields? && !type2.kind.fields?
272+
elsif type1.kind.leaf? && type2.kind.leaf?
273273
type1 != type2
274274
else
275275
# One or more of these are composite types,

0 commit comments

Comments
 (0)