Skip to content

Commit 83ed123

Browse files
mbrandonwgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 2c8b1c0 commit 83ed123

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

Sources/ComposableArchitecture/Observation/Binding+Observation.swift

+33-33
Original file line numberDiff line numberDiff line change
@@ -78,42 +78,42 @@
7878
}
7979
}
8080

81-
#if DEBUG
82-
private final class BindableActionDebugger<Action>: Sendable {
83-
let isInvalidated: @MainActor @Sendable () -> Bool
84-
let value: any Sendable
85-
let wasCalled = LockIsolated(false)
86-
init(
87-
value: some Sendable,
88-
isInvalidated: @escaping @MainActor @Sendable () -> Bool
89-
) {
90-
self.value = value
91-
self.isInvalidated = isInvalidated
92-
}
93-
deinit {
94-
let isInvalidated = mainActorNow(execute: isInvalidated)
95-
guard !isInvalidated else { return }
96-
guard wasCalled.value else {
97-
var valueDump: String {
98-
var valueDump = ""
99-
customDump(self.value, to: &valueDump, maxDepth: 0)
100-
return valueDump
81+
#if DEBUG
82+
private final class BindableActionDebugger<Action>: Sendable {
83+
let isInvalidated: @MainActor @Sendable () -> Bool
84+
let value: any Sendable
85+
let wasCalled = LockIsolated(false)
86+
init(
87+
value: some Sendable,
88+
isInvalidated: @escaping @MainActor @Sendable () -> Bool
89+
) {
90+
self.value = value
91+
self.isInvalidated = isInvalidated
92+
}
93+
deinit {
94+
let isInvalidated = mainActorNow(execute: isInvalidated)
95+
guard !isInvalidated else { return }
96+
guard wasCalled.value else {
97+
var valueDump: String {
98+
var valueDump = ""
99+
customDump(self.value, to: &valueDump, maxDepth: 0)
100+
return valueDump
101+
}
102+
reportIssue(
103+
"""
104+
A binding action sent from a store was not handled. …
105+
106+
Action:
107+
\(typeName(Action.self)).binding(.set(_, \(valueDump)))
108+
109+
To fix this, invoke "BindingReducer()" from your feature reducer's "body".
110+
"""
111+
)
112+
return
101113
}
102-
reportIssue(
103-
"""
104-
A binding action sent from a store was not handled. …
105-
106-
Action:
107-
\(typeName(Action.self)).binding(.set(_, \(valueDump)))
108-
109-
To fix this, invoke "BindingReducer()" from your feature reducer's "body".
110-
"""
111-
)
112-
return
113114
}
114115
}
115-
}
116-
#endif
116+
#endif
117117

118118
extension BindableAction where State: ObservableState {
119119
fileprivate static func set<Value: Equatable & Sendable>(

0 commit comments

Comments
 (0)