Skip to content

Commit 997923d

Browse files
sachindshindeyaacovCR
authored andcommitted
Revert non-test changes in graphql#3442 , which introduced the bugged compareFragmentPairs usage
1 parent 1e2a419 commit 997923d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/validation/rules/OverlappingFieldsCanBeMergedRule.ts

-16
Original file line numberDiff line numberDiff line change
@@ -267,22 +267,6 @@ function collectConflictsBetweenFieldsAndFragment(
267267
// (E) Then collect any conflicts between the provided collection of fields
268268
// and any fragment names found in the given fragment.
269269
for (const referencedFragmentName of referencedFragmentNames) {
270-
// Memoize so two fragments are not compared for conflicts more than once.
271-
if (
272-
comparedFragmentPairs.has(
273-
referencedFragmentName,
274-
fragmentName,
275-
areMutuallyExclusive,
276-
)
277-
) {
278-
continue;
279-
}
280-
comparedFragmentPairs.add(
281-
referencedFragmentName,
282-
fragmentName,
283-
areMutuallyExclusive,
284-
);
285-
286270
collectConflictsBetweenFieldsAndFragment(
287271
context,
288272
conflicts,

0 commit comments

Comments
 (0)