Skip to content

Commit

Permalink
AuthViewController: Drops optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
jleandroperez committed Jul 26, 2024
1 parent e2b670b commit b566a3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Simplenote/AuthViewController+Swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,12 @@ extension AuthViewController {

let alert = NSAlert.buildLoginCodeExpiredAlert()
alert.beginSheetModal(for: window) { [weak self] _ in
guard let navigationController = self?.containingNavigationController else {
return
}

DispatchQueue.main.async {
self?.containingNavigationController?.popViewController()
navigationController.popViewController()
}
}
}
Expand Down

0 comments on commit b566a3c

Please sign in to comment.