Skip to content

Commit 8c691c1

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 767231d commit 8c691c1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Sources/ComposableArchitecture/Store.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public final class Store<State, Action> {
149149
) where R.State == State, R.Action == Action {
150150
if let prepareDependencies = prepareDependencies {
151151
let (initialState, reducer) = withDependencies(prepareDependencies) {
152-
(initialState(), reducer())
152+
(initialState(), reducer())
153153
}
154154
self.init(
155155
initialState: initialState,

Tests/ComposableArchitectureTests/StoreTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -765,17 +765,17 @@ final class StoreTests: BaseTCATestCase {
765765
self.date = date()
766766
}
767767
}
768-
enum Action: Equatable { }
768+
enum Action: Equatable {}
769769
func reduce(into state: inout State, action: Action) -> EffectTask<Action> {}
770770
}
771771

772772
let store = Store(initialState: Feature.State()) {
773773
Feature()
774774
} withDependencies: {
775-
$0.date = .constant(Date(timeIntervalSinceReferenceDate: 1234567890))
775+
$0.date = .constant(Date(timeIntervalSinceReferenceDate: 1_234_567_890))
776776
}
777777

778-
XCTAssertEqual(store.state.value.date, Date(timeIntervalSinceReferenceDate: 1234567890))
778+
XCTAssertEqual(store.state.value.date, Date(timeIntervalSinceReferenceDate: 1_234_567_890))
779779
}
780780

781781
func testInit_ReducerBuilder_WithDependencies() async {
@@ -793,11 +793,11 @@ final class StoreTests: BaseTCATestCase {
793793
let store = Store(initialState: Feature.State()) {
794794
Feature(date: date())
795795
} withDependencies: {
796-
$0.date = .constant(Date(timeIntervalSinceReferenceDate: 1234567890))
796+
$0.date = .constant(Date(timeIntervalSinceReferenceDate: 1_234_567_890))
797797
}
798798

799799
_ = store.send(.tap)
800-
XCTAssertEqual(store.state.value.date, Date(timeIntervalSinceReferenceDate: 1234567890))
800+
XCTAssertEqual(store.state.value.date, Date(timeIntervalSinceReferenceDate: 1_234_567_890))
801801
}
802802
}
803803

Tests/ComposableArchitectureTests/TestStoreFailureTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
do {
144144
let store = TestStore(initialState: 0) {
145145
Reduce<Int, Void> { state, action in
146-
.task { try await Task.sleep(nanoseconds: NSEC_PER_SEC) }
146+
.task { try await Task.sleep(nanoseconds: NSEC_PER_SEC) }
147147
}
148148
}
149149
store.send(())

0 commit comments

Comments
 (0)