Skip to content

Commit 9022881

Browse files
author
Marc-Andre Giroux
committed
lets not have infinite loops
1 parent f2c20b5 commit 9022881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/graphql/static_validation/rules/fields_will_merge.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ def mutually_exclusive?(parents1, parents2)
349349
return true
350350
end
351351

352-
i = i + 1 if i < parents1.size - 1
353-
j = j + 1 if j < parents2.size - 1
352+
i = i + 1 if i <= parents1.size - 1
353+
j = j + 1 if j <= parents2.size - 1
354354
end
355355

356356
false

0 commit comments

Comments
 (0)