Skip to content

Commit 5a63b30

Browse files
tarunonkzaher
authored andcommitted
removing wrong type checking line
1 parent f043778 commit 5a63b30

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

RxCocoa/Common/DelegateProxyType.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@ extension DelegateProxyType where ParentObject: HasDataSource, Self.Delegate ==
386386
fileprivate func extend<DelegateProxy: DelegateProxyType, ParentObject>(make: @escaping (ParentObject) -> DelegateProxy) {
387387
MainScheduler.ensureExecutingOnScheduler()
388388
precondition(_identifier == DelegateProxy.identifier, "Delegate proxy has inconsistent identifier")
389-
precondition((DelegateProxy.self as? DelegateProxy.Delegate) != nil, "DelegateProxy subclass should be as a Delegate")
390389
guard _factories[ObjectIdentifier(ParentObject.self)] == nil else {
391390
rxFatalError("The factory of \(ParentObject.self) is duplicated. DelegateProxy is not allowed of duplicated base object type.")
392391
}

0 commit comments

Comments
 (0)