Skip to content

Commit bba92dd

Browse files
committed
Format and minor corrections after pulling in latest
changes from Pointfree repo.
1 parent 6c92aa5 commit bba92dd

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Examples/VoiceMemos/VoiceMemos/VoiceMemos.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ let voiceMemoReducer = Reducer<VoiceMemo, VoiceMemoAction, VoiceMemoEnvironment>
5151

5252
case .delete:
5353
return .merge(
54-
.cancel(id: PlayerId()),
55-
.cancel(id: TimerId())
54+
Effect.cancel(id: PlayerId()),
55+
Effect.cancel(id: TimerId())
5656
)
5757

5858
case .playButtonTapped:

Examples/VoiceMemos/VoiceMemosTests/VoiceMemosTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class VoiceMemosTests: XCTestCase {
304304
audioPlayerClient: .mock(
305305
play: { id, url in .future { _ in } }
306306
),
307-
mainQueue: self.scheduler.eraseToAnyScheduler()
307+
mainQueue: self.scheduler
308308
)
309309
)
310310

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
@@ -96,7 +96,8 @@ func debugCaseOutput(_ value: Any) -> String {
9696
case .tuple:
9797
return mirror.children.map { label, value in
9898
let childOutput = debugCaseOutputHelp(value)
99-
return "\(label.map { isUnlabeledArgument($0) ? "_:" : "\($0):" } ?? "")\(childOutput.isEmpty ? "" : " \(childOutput)")"
99+
return
100+
"\(label.map { isUnlabeledArgument($0) ? "_:" : "\($0):" } ?? "")\(childOutput.isEmpty ? "" : " \(childOutput)")"
100101
}
101102
.joined(separator: ", ")
102103
default:

0 commit comments

Comments
 (0)