Skip to content

Commit a81348c

Browse files
committed
debugging
1 parent a3fa5e6 commit a81348c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apollo-ios/Sources/ApolloAPI/SelectionSet+Equatable.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ public extension SelectionSet {
4242
_ lhs: T,
4343
_ rhs: any Hashable
4444
) -> Bool {
45-
if lhs != rhs as? T {
45+
if lhs != rhs as? T && String(describing: lhs) == "FriendsConnection" {
4646
print("""
4747
equatableCheck failure on \(String(describing: self))
4848
T: \(String(describing: T.self))
4949
lhs: \(lhs)
50-
rhs: \(rhs), as? T: \(rhs as? T)
50+
rhs: \(rhs), as! T: \(rhs as! T)
5151
""")
52+
53+
return lhs == rhs as! T
5254
}
5355

5456
return lhs == rhs as? T

0 commit comments

Comments
 (0)