Skip to content

Commit 5fb03fa

Browse files
committed
fix more errors
1 parent d84836f commit 5fb03fa

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

WorkflowCombine/TestingTests/TestingTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ private struct TestWorkflow: Workflow {
156156
case .worker(input: let input):
157157
TestWorker(input: input)
158158
.mapOutput { output in
159-
AnyWorkflowAction {
160-
$0.output = output
159+
AnyWorkflowAction { state, _ in
160+
state.output = output
161161
return nil
162162
}
163163
}

WorkflowCombine/Tests/WorkerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private struct PublisherTestWorkflow: Workflow {
181181
func render(state: Int, context: RenderContext<PublisherTestWorkflow>) -> Int {
182182
PublisherTestWorker()
183183
.mapOutput { output in
184-
AnyWorkflowAction { state in
184+
AnyWorkflowAction { state, _ in
185185
state = output
186186
return nil
187187
}

WorkflowReactiveSwift/TestingTests/TestingTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ private struct TestWorkflow: Workflow {
156156
case .worker(input: let input):
157157
TestWorker(input: input)
158158
.mapOutput { output in
159-
AnyWorkflowAction {
160-
$0.output = output
159+
AnyWorkflowAction { state, _ in
160+
state.output = output
161161
return nil
162162
}
163163
}

WorkflowReactiveSwift/Tests/WorkerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private struct SignalProducerTestWorkflow: Workflow {
180180
func render(state: Int, context: RenderContext<SignalProducerTestWorkflow>) -> Int {
181181
SignalProducerTestWorker()
182182
.mapOutput { output in
183-
AnyWorkflowAction { state in
183+
AnyWorkflowAction { state, _ in
184184
state = output
185185
return nil
186186
}

WorkflowRxSwift/TestingTests/TestingTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ private struct TestWorkflow: Workflow {
147147
case .worker(input: let input):
148148
TestWorker(input: input)
149149
.mapOutput { output in
150-
AnyWorkflowAction {
151-
$0.output = output
150+
AnyWorkflowAction { state, _ in
151+
state.output = output
152152
return nil
153153
}
154154
}

WorkflowRxSwift/Tests/WorkerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private struct ObservableTestWorkflow: Workflow {
180180
func render(state: Int, context: RenderContext<Self>) -> Int {
181181
ObservableTestWorker()
182182
.mapOutput { output in
183-
AnyWorkflowAction { state in
183+
AnyWorkflowAction { state, _ in
184184
state = output
185185
return nil
186186
}

0 commit comments

Comments
 (0)