Skip to content

Commit dcde721

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent cf0f2f2 commit dcde721

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Sources/ComposableArchitecture/Store.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,8 +1034,7 @@ extension ScopedStoreReducer: AnyScopedStoreReducer {
10341034
removeDuplicates isDuplicate: ((ChildState, ChildState) -> Bool)?
10351035
) -> Store<ChildState, ChildAction> {
10361036
let id = id?(store.stateSubject.value)
1037-
if
1038-
store.canCacheChildren,
1037+
if store.canCacheChildren,
10391038
let id = id,
10401039
let childStore = store.children[id] as? Store<ChildState, ChildAction>
10411040
{

Tests/ComposableArchitectureTests/StoreLifetimeTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import XCTest
21
import ComposableArchitecture
2+
import XCTest
33

44
@MainActor
55
final class StoreLifetimeTests: BaseTCATestCase {
@@ -47,7 +47,7 @@ final class StoreLifetimeTests: BaseTCATestCase {
4747
}
4848

4949
@Reducer
50-
fileprivate struct Child {
50+
private struct Child {
5151
struct State: Equatable {
5252
var count = 0
5353
}
@@ -66,7 +66,7 @@ fileprivate struct Child {
6666
}
6767

6868
@Reducer
69-
fileprivate struct Parent {
69+
private struct Parent {
7070
struct State: Equatable {
7171
var child = Child.State()
7272
}
@@ -81,7 +81,7 @@ fileprivate struct Parent {
8181
}
8282

8383
@Reducer
84-
fileprivate struct Grandparent {
84+
private struct Grandparent {
8585
struct State: Equatable {
8686
var child = Parent.State()
8787
}

0 commit comments

Comments
 (0)