Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Xcode 14.2 build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed Jul 11, 2023
1 parent 63b792b commit 801e3cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Sources/Brave/Frontend/Sync/SyncViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ class SyncViewController: UIViewController {

if requiresAuthentication {
askForAuthentication() { [weak self] success in
guard let self else { return }
guard let self = self else { return }

if !success {
if isModallyPresented {
if self.isModallyPresented {
self.dismiss(animated: true)
} else {
self.navigationController?.popViewController(animated: true)
Expand Down
6 changes: 3 additions & 3 deletions Sources/Brave/Frontend/Sync/SyncWelcomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class SyncWelcomeViewController: SyncViewController {
askForAuthentication() { [weak self] status in
guard let self = self, status else { return }

let pairCamera = SyncPairCameraViewController(syncAPI: syncAPI)
let pairCamera = SyncPairCameraViewController(syncAPI: self.syncAPI)
pairCamera.delegate = self
self.navigationController?.pushViewController(pairCamera, animated: true)
}
Expand All @@ -267,11 +267,11 @@ class SyncWelcomeViewController: SyncViewController {
askForAuthentication() { [weak self] status in
guard let self = self, status else { return }

let syncInternalsController = syncAPI.createSyncInternalsController().then {
let syncInternalsController = self.syncAPI.createSyncInternalsController().then {
$0.title = Strings.braveSyncInternalsTitle
}

navigationController?.pushViewController(syncInternalsController, animated: true)
self.navigationController?.pushViewController(syncInternalsController, animated: true)
}
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/BraveVPN/InstallVPNViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class InstallVPNViewController: VPNSetupLoadingController {
isLoading = true

installProfileAndConnectVPNFirstTime { [weak self] status in
guard let self else { return }
guard let self = self else { return }

if status {
self.dismiss(animated: true) {
Expand All @@ -63,7 +63,7 @@ class InstallVPNViewController: VPNSetupLoadingController {
// Retry installing profile twice if it fails
// Error generated is WireGuard capabilities are not yet enabled on this node
if self.installVPNProfileRetryCount < 2 {
installVPNAction()
self.installVPNAction()
} else {
presentErrorVPNInstallProfile()
}
Expand Down

0 comments on commit 801e3cf

Please sign in to comment.