Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Jun 26, 2024
1 parent fc3332b commit 3b1b954
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ final class MetricBuilder<T> {
}

private func isIPhoneSmallScreen(_ frame: CGSize) -> Bool {
frame.height > 0 && frame.height <= 667 //iPhone SE
frame.height > 0 && frame.height <= 667 // iPhone SE
}

private func isIPad(_ verticalSizeClass: UserInterfaceSizeClass?, _ horizontalSizeClass: UserInterfaceSizeClass?) -> Bool {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,22 @@ struct OnboardingView: View {
extension OnboardingView {

enum ViewState: Equatable {
enum Intro: Equatable {
case startOnboardingDialog
case browsersComparisonDialog
}

case landing
case onboarding(Intro)
case chooseBrowser
}

}

extension OnboardingView.ViewState {

enum Intro: Equatable {
case startOnboardingDialog
case browsersComparisonDialog
}

}

// MARK: - Landing View

extension OnboardingView {
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGoTests/MockURLOpener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class MockURLOpener: URLOpener {
return canOpenURL
}

func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey : Any], completionHandler completion: ((Bool) -> Void)?) {
func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey: Any], completionHandler completion: ((Bool) -> Void)?) {
didCallOpenURL = true
capturedURL = url
}
Expand Down

0 comments on commit 3b1b954

Please sign in to comment.