Run swift-format

This commit is contained in:
mbrandonw
2020-06-15 16:44:22 +00:00
committed by GitHub Actions
parent 2f92610ceb
commit e4447bfac8
2 changed files with 6 additions and 3 deletions

View File

@@ -109,10 +109,12 @@ extension Reducer {
return .concatenate(
.fireAndForget {
debugEnvironment.queue.async {
let actionOutput = actionFormat == .prettyPrint
let actionOutput =
actionFormat == .prettyPrint
? debugOutput(localAction).indent(by: 2)
: debugCaseOutput(localAction).indent(by: 2)
let stateOutput = LocalState.self == Void.self
let stateOutput =
LocalState.self == Void.self
? ""
: debugDiff(previousState, nextState).map { "\($0)\n" } ?? " (No state changes)\n"
debugEnvironment.printer(