From 1610bf0949d279ae2e6c998e9aaba13b2b558af8 Mon Sep 17 00:00:00 2001 From: Patryk Klatka Date: Sat, 27 Apr 2024 00:13:36 +0200 Subject: [PATCH] fix: remove useless check --- packages/turbo/ios/RNVisitableView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/turbo/ios/RNVisitableView.swift b/packages/turbo/ios/RNVisitableView.swift index 927fbcb..07ccb2e 100644 --- a/packages/turbo/ios/RNVisitableView.swift +++ b/packages/turbo/ios/RNVisitableView.swift @@ -169,11 +169,11 @@ class RNVisitableView: UIView, RNSessionSubscriber { } private func visit() { - if (controller?.visitableURL?.absoluteString == url as String || session == nil) { + if (controller?.visitableURL?.absoluteString == url as String) { return } controller!.visitableURL = URL(string: String(url)) - session!.visit(controller!) + session?.visit(controller!) } public func didProposeVisit(proposal: VisitProposal){