Skip to content

Commit

Permalink
Clean up implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Dec 16, 2024
1 parent 03e18df commit 1006751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Turbo/Session/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ extension Session: VisitableDelegate {

// Navigating forward - complete navigation early.
if visitable === currentVisit.visitable {
let currentVisitCompletedWithResponse = currentVisit.options.response?.responseHTML != nil && currentVisit.state == .completed
let currentVisitHasResponse = currentVisit.options.response?.responseHTML != nil

if currentVisit.state == .started || currentVisitCompletedWithResponse {
if currentVisit.state == .started || (currentVisitHasResponse && currentVisit.state == .completed) {
completeNavigationForCurrentVisit()
return
}
Expand Down

0 comments on commit 1006751

Please sign in to comment.