Skip to content

Commit

Permalink
[Swift 3] Make Dispatch Result Discardable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-G committed Nov 24, 2016
1 parent c03fae8 commit b8cc8bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ReSwiftRecorder/RecordingStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ open class RecordingMainStore<State: StateType>: Store<State> {
recordAction(action)
}

@discardableResult
open override func dispatch(_ action: Action) -> Any {
if let actionsToReplay = actionsToReplay , actionsToReplay > 0 {
// ignore actions that are dispatched during replay
Expand Down

0 comments on commit b8cc8bf

Please sign in to comment.