Skip to content

Commit 9a42a03

Browse files
committed
Fix SwiftLint line length violation in TranslationsMiddleware
1 parent 414be29 commit 9a42a03

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,11 @@ final class TranslationsMiddleware: FeatureFlaggable {
212212
preferredLanguages = [Locale.current.languageCode].compactMap { $0 }
213213
}
214214

215-
guard try await translationsService.shouldOfferTranslation(for: action.windowUUID, using: preferredLanguages) else { return }
215+
let isEligible = try await translationsService.shouldOfferTranslation(
216+
for: action.windowUUID,
217+
using: preferredLanguages
218+
)
219+
guard isEligible else { return }
216220

217221
// Auto-translate handled the page load — skip the manual offer.
218222
if await self.tryAutoTranslate(for: action) { return }

0 commit comments

Comments
 (0)