Skip to content

Commit 7b93098

Browse files
GREENOVERp4checo
authored andcommitted
refactor: Remove not used case let keyword (#1483)
(cherry picked from commit 37f7af88b56ad8111674d0eadd1ae3e89f9afd6b) # Conflicts: # Sources/ComposableArchitecture/Effects/Publisher/Timer.swift
1 parent 4c97b1d commit 7b93098

File tree

1 file changed

+10
-10
lines changed
  • Sources/ComposableArchitecture/Effects/Publisher

1 file changed

+10
-10
lines changed

Sources/ComposableArchitecture/Effects/Publisher/Timer.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ extension Effect where Action == Date, Failure == Never {
2323
/// struct TimerID: Hashable {}
2424
///
2525
/// func reduce(into state: inout State, action: Action) -> Effect<Action, Never> {
26-
/// switch action {
27-
/// case .startButtonTapped:
26+
/// switch action {
27+
/// case .startButtonTapped:
2828
/// return Effect.timer(id: TimerID(), every: 1, on: self.mainQueue)
29-
/// .map { _ in .timerTicked }
29+
/// .map { _ in .timerTicked }
3030
///
31-
/// case .stopButtonTapped:
32-
/// return .cancel(id: TimerID())
31+
/// case .stopButtonTapped:
32+
/// return .cancel(id: TimerID())
3333
///
34-
/// case let .timerTicked:
35-
/// state.count += 1
36-
/// return .none
37-
/// }
34+
/// case .timerTicked:
35+
/// state.count += 1
36+
/// return .none
37+
/// }
3838
/// }
3939
/// ```
4040
///
@@ -48,7 +48,7 @@ extension Effect where Action == Date, Failure == Never {
4848
/// let store = TestStore(
4949
/// initialState: Feature.State(),
5050
/// reducer: Feature()
51-
/// )
51+
/// )
5252
///
5353
/// store.dependencies.mainQueue = mainQueue
5454
///

0 commit comments

Comments
 (0)