Skip to content

Commit

Permalink
Revert non-test changes in graphql#3442 , which introduced the bugged…
Browse files Browse the repository at this point in the history
… compareFragmentPairs usage
  • Loading branch information
sachindshinde committed Aug 16, 2024
1 parent 5bb3c05 commit 2080d69
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/validation/rules/OverlappingFieldsCanBeMergedRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,22 +270,6 @@ function collectConflictsBetweenFieldsAndFragment(
// (E) Then collect any conflicts between the provided collection of fields
// and any fragment names found in the given fragment.
for (const referencedFragmentName of referencedFragmentNames) {
// Memoize so two fragments are not compared for conflicts more than once.
if (
comparedFragmentPairs.has(
referencedFragmentName,
fragmentName,
areMutuallyExclusive,
)
) {
continue;
}
comparedFragmentPairs.add(
referencedFragmentName,
fragmentName,
areMutuallyExclusive,
);

collectConflictsBetweenFieldsAndFragment(
context,
conflicts,
Expand Down

0 comments on commit 2080d69

Please # to comment.