Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
federicocappelli committed Nov 20, 2023
1 parent b7fa2cd commit 64a8ae0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ fastlane/test_output
# DuckDuckGo

Configuration/ExternalDeveloper.xcconfig
scripts/assets
2 changes: 1 addition & 1 deletion DuckDuckGo/ActionSheetDaxDialogViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class ActionSheetDaxDialogViewController: UIViewController {
return
}

self.dismiss(animated: true)
dismiss(animated: true)
if let spec = spec {
Pixel.fire(pixel: spec.cancelActionPixelName)
}
Expand Down
6 changes: 3 additions & 3 deletions DuckDuckGo/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -686,10 +686,10 @@ class MainViewController: UIViewController {
func onQuickFirePressed() {
wakeLazyFireButtonAnimator()

self.forgetAllWithAnimation {}
self.dismiss(animated: true)
forgetAllWithAnimation {}
dismiss(animated: true)
if KeyboardSettings().onAppLaunch {
self.enterSearch()
enterSearch()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class PrivacyDashboardViewController: UIViewController {
}

private func privacyDashboardCloseHandler() {
self.dismiss(animated: true)
dismiss(animated: true)
}
}

Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/SyncSettingsViewController+SyncDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ extension SyncSettingsViewController: SyncManagementViewModelDelegate {

func launchAutofillViewController() {
guard let mainVC = view.window?.rootViewController as? MainViewController else { return }
self.dismiss(animated: true)
dismiss(animated: true)
mainVC.launchAutofillLogins()
}

func launchBookmarksViewController() {
guard let mainVC = view.window?.rootViewController as? MainViewController else { return }
self.dismiss(animated: true)
dismiss(animated: true)
mainVC.segueToBookmarks()
}

Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/WebContainerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class WebContainerViewController: UIViewController {
}

@IBAction func dismiss() {
self.dismiss(animated: true)
dismiss(animated: true)
}

private func load(url: URL) {
Expand Down

0 comments on commit 64a8ae0

Please sign in to comment.