File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Sources/ComposableArchitecture/Debugging Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments