We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3fa5e6 commit a81348cCopy full SHA for a81348c
apollo-ios/Sources/ApolloAPI/SelectionSet+Equatable.swift
@@ -42,13 +42,15 @@ public extension SelectionSet {
42
_ lhs: T,
43
_ rhs: any Hashable
44
) -> Bool {
45
- if lhs != rhs as? T {
+ if lhs != rhs as? T && String(describing: lhs) == "FriendsConnection" {
46
print("""
47
equatableCheck failure on \(String(describing: self))
48
T: \(String(describing: T.self))
49
lhs: \(lhs)
50
- rhs: \(rhs), as? T: \(rhs as? T)
+ rhs: \(rhs), as! T: \(rhs as! T)
51
""")
52
+
53
+ return lhs == rhs as! T
54
}
55
56
return lhs == rhs as? T
0 commit comments