Closed bukira closed 3 years ago
I am trying to get comparators to work, they are working else where but not in one instance
I get
[FATAL] No registered comparators for Optional < CallRoute >
But I have done
Matcher.default.register(CallRoute.self) { (lhs, rhs) -> Bool in guard lhs.ID == rhs.ID else { return false } return true }
So I don't understand why it is saying its not registered
ok fixed it
needed to be
Matcher.default.register(CallRoute?.self) { (lhs, rhs) -> Bool in guard lhs?.ID == rhs?.ID else { return false } return true }
I am trying to get comparators to work, they are working else where but not in one instance
I get
[FATAL] No registered comparators for Optional < CallRoute >
But I have done
Matcher.default.register(CallRoute.self) { (lhs, rhs) -> Bool in guard lhs.ID == rhs.ID else { return false } return true }
So I don't understand why it is saying its not registered