Skip to content

Commit 451bcc2

Browse files
author
Tarik Eshaq
authored
Fix swiftformat (#4710)
* Fixes swiftformat * upgrades the ci to use swiftversion 5
1 parent df1a47f commit 451bcc2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

automation/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def swift_format():
287287
run_command([
288288
'swiftformat', 'megazords', 'components/*/ios',
289289
'--exclude', '**/Generated', '--exclude', 'components/nimbus/ios/Nimbus/Utils',
290-
'--lint', '--swiftversion', '4',
290+
'--lint', '--swiftversion', '5',
291291
])
292292
else:
293293
print("WARNING: skipping swiftformat on non-Darwin host")

components/fxa-client/ios/FxAClient/FxAccountManager.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ open class FxAccountManager {
5252
setupInternalListeners()
5353
}
5454

55-
private lazy var statePersistenceCallback: FxAStatePersistenceCallback = {
56-
FxAStatePersistenceCallback(manager: self)
57-
}()
55+
private lazy var statePersistenceCallback: FxAStatePersistenceCallback = .init(manager: self)
5856

5957
/// Starts the FxA account manager and advances the state machine.
6058
/// It is required to call this method before doing anything else with the manager.

0 commit comments

Comments
 (0)