Skip to content

Commit 461ee90

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent daf41b3 commit 461ee90

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Sources/ComposableArchitecture/Store.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,7 @@ private final class ScopedReducer<
719719
state = self.toScopedState(self.rootStore.state.value)
720720
self.isSending = false
721721
}
722-
if
723-
let action = self.fromScopedAction(state, action),
722+
if let action = self.fromScopedAction(state, action),
724723
let task = self.rootStore.send(action, originatingFrom: nil)
725724
{
726725
return .run { _ in await task.cancellableValue }

Sources/ComposableArchitecture/SwiftUI/Binding.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public struct BindingState<Value> {
5454
@available(
5555
*,
5656
deprecated,
57-
message: """
57+
message:
58+
"""
5859
Chaining onto properties of bindable state is deprecated. Push '@BindingState' use to the child state, instead.
5960
"""
6061
)
@@ -378,7 +379,9 @@ extension ViewStore where ViewAction: BindableAction, ViewAction.State == ViewSt
378379
debugger.wasCalled = true
379380
}
380381
#else
381-
let set: @Sendable (inout ViewState) -> Void = { $0[keyPath: keyPath].wrappedValue = value }
382+
let set: @Sendable (inout ViewState) -> Void = {
383+
$0[keyPath: keyPath].wrappedValue = value
384+
}
382385
#endif
383386
return .binding(.init(keyPath: keyPath, set: set, value: value))
384387
}
@@ -412,7 +415,9 @@ extension ViewStore where ViewAction: BindableAction, ViewAction.State == ViewSt
412415
debugger.wasCalled = true
413416
}
414417
#else
415-
let set: @Sendable (inout ViewState) -> Void = { $0[keyPath: keyPath].wrappedValue = value }
418+
let set: @Sendable (inout ViewState) -> Void = {
419+
$0[keyPath: keyPath].wrappedValue = value
420+
}
416421
#endif
417422
return .binding(.init(keyPath: keyPath, set: set, value: value))
418423
}

0 commit comments

Comments
 (0)