Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored and github-actions[bot] committed Dec 2, 2023
1 parent cf0f2f2 commit dcde721
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Sources/ComposableArchitecture/Store.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,7 @@ extension ScopedStoreReducer: AnyScopedStoreReducer {
removeDuplicates isDuplicate: ((ChildState, ChildState) -> Bool)?
) -> Store<ChildState, ChildAction> {
let id = id?(store.stateSubject.value)
if
store.canCacheChildren,
if store.canCacheChildren,
let id = id,
let childStore = store.children[id] as? Store<ChildState, ChildAction>
{
Expand Down
8 changes: 4 additions & 4 deletions Tests/ComposableArchitectureTests/StoreLifetimeTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
import ComposableArchitecture
import XCTest

@MainActor
final class StoreLifetimeTests: BaseTCATestCase {
Expand Down Expand Up @@ -47,7 +47,7 @@ final class StoreLifetimeTests: BaseTCATestCase {
}

@Reducer
fileprivate struct Child {
private struct Child {
struct State: Equatable {
var count = 0
}
Expand All @@ -66,7 +66,7 @@ fileprivate struct Child {
}

@Reducer
fileprivate struct Parent {
private struct Parent {
struct State: Equatable {
var child = Child.State()
}
Expand All @@ -81,7 +81,7 @@ fileprivate struct Parent {
}

@Reducer
fileprivate struct Grandparent {
private struct Grandparent {
struct State: Equatable {
var child = Parent.State()
}
Expand Down

0 comments on commit dcde721

Please sign in to comment.