Skip to content

Commit

Permalink
resolves #10
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa1977 committed Jun 14, 2018
1 parent d509ed1 commit 8465375
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fsm.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ defmodule Fsm do
def state(%__MODULE__{state: state}), do: state
def data(%__MODULE__{data: data}), do: data

# We need to suppress dialyzer warning, since in the second clause might
# never match. This can happen if every single event handler uses `Fsm`
# functions to explicitly set the next state.
@dialyzer {:no_match, change_state: 2}
defp change_state(%__MODULE__{} = fsm, {:action_responses, responses}),
do: parse_action_responses(fsm, responses)

Expand Down

0 comments on commit 8465375

Please sign in to comment.