Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Coolerov committed May 14, 2022
1 parent c66f84d commit f98c3c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tests/SwifteaTests/SwifteaTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,7 @@ final class SwifteaTests: XCTestCase {
let reducerReduce: (State, Event) -> Next<State, Command> = { state, event in
switch event {
case .loadInitial:
var state = state
return .nextAndDispatch(state, [.loadInitialData])
return .dispatch([.loadInitialData])

case .loadNextPage:
return .dispatchCancellable(
Expand Down Expand Up @@ -534,8 +533,7 @@ final class SwifteaTests: XCTestCase {
let reducerReduce: (State, Event) -> Next<State, Command> = { state, event in
switch event {
case .loadInitial:
var state = state
return .nextAndDispatch(state, [.loadInitialData])
return .dispatch([.loadInitialData])

case .loadNextPage:
// Pass same state value to .next
Expand Down

0 comments on commit f98c3c4

Please sign in to comment.