From f9603b12b7854acc4af5362923ec4275e47b52f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=A0vara?= Date: Tue, 3 Dec 2024 16:03:12 +0100 Subject: [PATCH] Move comment out of if statements. --- Source/Turbo/Session/Session.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Turbo/Session/Session.swift b/Source/Turbo/Session/Session.swift index 6b05587..677332e 100644 --- a/Source/Turbo/Session/Session.swift +++ b/Source/Turbo/Session/Session.swift @@ -247,8 +247,8 @@ extension Session: VisitableDelegate { return } + // Back swipe gesture canceled. if visitable === topmostVisit.visitable && visitable.visitableViewController.isMovingToParent { - // Back swipe gesture canceled if topmostVisit.state == .completed { currentVisit.cancel() } else { @@ -257,20 +257,20 @@ extension Session: VisitableDelegate { return } + // Navigating forward - complete navigation early. if visitable === currentVisit.visitable && currentVisit.state == .started { - // Navigating forward - complete navigation early completeNavigationForCurrentVisit() return } + // Navigating backward from a web view screen to a web view screen. if visitable !== topmostVisit.visitable { - // Navigating backward from a web view screen to a web view screen. visit(visitable, action: .restore) return } + // Navigating backward from a native to a web view screen. if visitable === previousVisit?.visitable { - // Navigating backward from a native to a web view screen. visit(visitable, action: .restore) } }