Skip to content

Commit

Permalink
revert a support for ok|{ok, State}
Browse files Browse the repository at this point in the history
  • Loading branch information
danikp committed Sep 9, 2015
1 parent 6eb5b05 commit 2843211
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/simple_bridge_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
-type reply() :: ws_data() | [ws_data()].
-type reason() :: integer().
-type state() :: any().
-type full_reply() :: ok
| {ok, state()}
| noreply
-type full_reply() :: noreply
| {noreply, state()}
| {reply, reply()}
| {reply, reply(), state()}
Expand Down
2 changes: 0 additions & 2 deletions src/simple_bridge_websocket.erl
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ call_info(Handler, Bridge, Msg, State) ->

extract_reply_state(State, InfoMsgReturn) ->
case InfoMsgReturn of
ok -> {noreply, State};
{ok, NewState} -> {noreply, NewState};
noreply -> {noreply, State};
{noreply, NewState} -> {noreply, NewState};
{reply, Reply} -> {{reply, Reply}, State};
Expand Down

0 comments on commit 2843211

Please sign in to comment.