Skip to content

Commit 54b7bee

Browse files
committed
Fix SwiftLint violations
1 parent 9b11dbc commit 54b7bee

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

firefox-ios/Client/Frontend/Browser/BrowserViewController/State/BrowserViewControllerState.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ struct BrowserViewControllerState: ScreenState {
452452
displayView: .trackingProtectionDetails,
453453
buttonTapped: action.buttonTapped,
454454
microsurveyState: MicrosurveyPromptState.reducer(state.microsurveyState, action),
455-
autoTranslatePromptState: AutoTranslatePromptState.reducer(state.autoTranslatePromptState, action))
455+
autoTranslatePromptState: AutoTranslatePromptState.reducer(state.autoTranslatePromptState, action))
456456
}
457457

458458
@MainActor
@@ -507,7 +507,7 @@ struct BrowserViewControllerState: ScreenState {
507507
browserViewType: state.browserViewType,
508508
displayView: .locationViewLongPressAction,
509509
microsurveyState: MicrosurveyPromptState.reducer(state.microsurveyState, action),
510-
autoTranslatePromptState: AutoTranslatePromptState.reducer(state.autoTranslatePromptState, action))
510+
autoTranslatePromptState: AutoTranslatePromptState.reducer(state.autoTranslatePromptState, action))
511511
}
512512

513513
@MainActor

firefox-ios/Client/Frontend/Translations/AutoTranslatePromptView.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,18 @@ final class AutoTranslatePromptView: UIView, ThemeApplicable, Notifiable {
9393

9494
@objc
9595
private func didTapEnable() {
96-
store.dispatch(TranslationsAction(windowUUID: windowUUID, actionType: TranslationsActionType.didTapEnableAutoTranslate))
96+
store.dispatch(TranslationsAction(
97+
windowUUID: windowUUID,
98+
actionType: TranslationsActionType.didTapEnableAutoTranslate
99+
))
97100
}
98101

99102
@objc
100103
private func didTapDismiss() {
101-
store.dispatch(TranslationsAction(windowUUID: windowUUID, actionType: TranslationsActionType.didDismissAutoTranslatePrompt))
104+
store.dispatch(TranslationsAction(
105+
windowUUID: windowUUID,
106+
actionType: TranslationsActionType.didDismissAutoTranslatePrompt
107+
))
102108
}
103109

104110
// MARK: - ThemeApplicable

firefox-ios/Client/Frontend/Translations/TranslationsMiddleware.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,10 @@ final class TranslationsMiddleware: FeatureFlaggable {
332332
let autoTranslateEnabled = profile.prefs.boolForKey(PrefsKeys.Settings.translationAutoTranslate) ?? false
333333
guard !promptShown && !autoTranslateEnabled else { return }
334334
profile.prefs.setBool(true, forKey: PrefsKeys.Settings.translationAutoTranslatePromptShown)
335-
store.dispatch(TranslationsAction(windowUUID: windowUUID, actionType: TranslationsActionType.showAutoTranslatePrompt))
335+
store.dispatch(TranslationsAction(
336+
windowUUID: windowUUID,
337+
actionType: TranslationsActionType.showAutoTranslatePrompt
338+
))
336339
}
337340

338341
/// Clears the flow ID for the given action's window.

0 commit comments

Comments
 (0)