Skip to content

Commit

Permalink
Refactor FXIOS-10205 [Swiftlint] Resolve 1 implicitly_unwrapped_optio…
Browse files Browse the repository at this point in the history
…nal violations in CreditCardSettingsViewModel (#23808)

Resolve warnings in CreditCardSettingsViewModel

Co-authored-by: Marceau Tonelli <[email protected]>
  • Loading branch information
tonell-m and tonelli-m authored Dec 17, 2024
1 parent a1a3226 commit d9d0143
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class CreditCardSettingsViewModel {
var appAuthenticator: AppAuthenticationProtocol?

lazy var cardInputViewModel = CreditCardInputViewModel(profile: profile)
lazy var toggleModel = ToggleModel(isEnabled: isAutofillEnabled, delegate: self)
var tableViewModel = CreditCardTableViewModel()
var toggleModel: ToggleModel!

public init(profile: Profile,
windowUUID: WindowUUID,
Expand All @@ -37,7 +37,7 @@ class CreditCardSettingsViewModel {
guard let profile = profile as? BrowserProfile else { return }
self.autofill = profile.autofill
self.appAuthenticator = appAuthenticator
self.toggleModel = ToggleModel(isEnabled: isAutofillEnabled, delegate: self)

tableViewModel.toggleModel = toggleModel
}

Expand Down

0 comments on commit d9d0143

Please sign in to comment.