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 a81348c commit 40bf812Copy full SHA for 40bf812
apollo-ios/Sources/ApolloAPI/SelectionSet+Equatable.swift
@@ -42,15 +42,13 @@ public extension SelectionSet {
42
_ lhs: T,
43
_ rhs: any Hashable
44
) -> Bool {
45
- if lhs != rhs as? T && String(describing: lhs) == "FriendsConnection" {
+ if lhs != rhs as? T {
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