Skip to content

Commit

Permalink
Merge pull request #2 from SwiftRex/removeDebugOutput
Browse files Browse the repository at this point in the history
Remove debug output
  • Loading branch information
luizmb authored May 12, 2022
2 parents 322c9cf + d2817be commit 72cd85c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/GatedMiddleware/GatedMiddleware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ public final class GatedMiddleware<M: MiddlewareProtocol>: MiddlewareProtocol {
/// do anything in case the predicate is not satisfied, or it will forward the action to the inner middleware in case the predicate
/// is true.
public func handle(action: M.InputActionType, from dispatcher: ActionSource, state: @escaping GetState<M.StateType>) -> IO<M.OutputActionType> {
print(action)
dump(state())
guard gate.shouldHandleAction(action, state()) else { return .pure() }

return middleware.handle(action: action, from: dispatcher, state: state)
Expand Down

0 comments on commit 72cd85c

Please sign in to comment.