Skip to content

Commit e4447bf

Browse files
mbrandonwactions-user
authored andcommitted
Run swift-format
1 parent 2f92610 commit e4447bf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Sources/ComposableArchitecture/Debugging/ReducerDebugging.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ extension Reducer {
109109
return .concatenate(
110110
.fireAndForget {
111111
debugEnvironment.queue.async {
112-
let actionOutput = actionFormat == .prettyPrint
112+
let actionOutput =
113+
actionFormat == .prettyPrint
113114
? debugOutput(localAction).indent(by: 2)
114115
: debugCaseOutput(localAction).indent(by: 2)
115-
let stateOutput = LocalState.self == Void.self
116+
let stateOutput =
117+
LocalState.self == Void.self
116118
? ""
117119
: debugDiff(previousState, nextState).map { "\($0)\n" } ?? " (No state changes)\n"
118120
debugEnvironment.printer(

Sources/ComposableArchitecture/Debugging/ReducerInstrumentation.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ func debugCaseOutput(_ value: Any) -> String {
100100
case .tuple:
101101
return mirror.children.map { label, value in
102102
let childOutput = debugCaseOutputHelp(value)
103-
return "\(label.map { isUnlabeledArgument($0) ? "_:" : "\($0):" } ?? "")\(childOutput.isEmpty ? "" : " \(childOutput)")"
103+
return
104+
"\(label.map { isUnlabeledArgument($0) ? "_:" : "\($0):" } ?? "")\(childOutput.isEmpty ? "" : " \(childOutput)")"
104105
}
105106
.joined(separator: ", ")
106107
default:

0 commit comments

Comments
 (0)