Skip to content

Commit

Permalink
more dialyzer stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Ino Murko committed Nov 8, 2018
1 parent 2409d68 commit d49cc68
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/websockex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,7 @@ defmodule WebSockex do
Invoked when the Websocket receives a ping frame
"""
@callback handle_ping(ping_frame :: :ping | {:ping, binary}, state :: term) ::
{:ok, new_state}
| {:reply, frame, new_state}
| {:close, new_state}
| {:close, close_frame, new_state}
when new_state: term
{:reply, :pong | {:pong, term}, term}

@doc """
Invoked when the Websocket receives a pong frame.
Expand Down Expand Up @@ -292,7 +288,7 @@ defmodule WebSockex do
@doc false
def handle_info(message, state) do
require Logger
Logger.error("No handle_info/2 clause in #{__MODULE__} provided for #{inspect(message)}")
_ = Logger.error("No handle_info/2 clause in #{__MODULE__} provided for #{inspect(message)}")
{:ok, state}
end

Expand Down

0 comments on commit d49cc68

Please sign in to comment.