File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
apollo-ios/Sources/ApolloAPI Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,6 @@ public extension SelectionSet {
15
15
/// that are relevant to the `SelectionSet`. This ensures that equality checks for a fragment do not
16
16
/// consider fields that are not included in the fragment, even if they are present in the data.
17
17
static func == ( lhs: Self , rhs: Self ) -> Bool {
18
- if String ( describing: self ) == " FriendsConnection " {
19
- print ( """
20
- SelectionSet::==
21
- lhs: \( lhs. fieldsForEquality ( ) )
22
- rhs: \( rhs. fieldsForEquality ( ) )
23
- """ )
24
- }
25
-
26
18
return Self . equatableCheck (
27
19
lhs. fieldsForEquality ( ) ,
28
20
rhs. fieldsForEquality ( )
@@ -50,7 +42,15 @@ public extension SelectionSet {
50
42
_ lhs: T ,
51
43
_ rhs: any Hashable
52
44
) -> Bool {
53
- lhs == rhs as? T
45
+ if String ( describing: self ) == " FriendsConnection " && ( lhs != rhs as? T ) {
46
+ print ( """
47
+ equatableCheck failure:
48
+ lhs: \( lhs)
49
+ rhs: \( rhs) , as? T: \( rhs as? T )
50
+ """ )
51
+ }
52
+
53
+ return lhs == rhs as? T
54
54
}
55
55
56
56
private func fieldsForEquality( ) -> [ String : FieldValue ] {
You can’t perform that action at this time.
0 commit comments