Skip to content

Commit

Permalink
test files dialyzier unmatched_return
Browse files Browse the repository at this point in the history
  • Loading branch information
Ino Murko committed Nov 8, 2018
1 parent e53416d commit 2409d68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/support/test_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defmodule WebSockex.TestServer do

{:error, :eaddrinuse} ->
require Logger
Logger.error("Address #{port} in use!")
_ = Logger.error("Address #{port} in use!")
start_https(pid)
end
end
Expand All @@ -76,7 +76,7 @@ defmodule WebSockex.TestServer do
end

defp get_port do
unless Process.whereis(__MODULE__), do: start_ports_agent()
_ = unless Process.whereis(__MODULE__), do: start_ports_agent()

Agent.get_and_update(__MODULE__, fn port -> {port, port + 1} end)
end
Expand All @@ -95,7 +95,7 @@ defmodule WebSockex.TestSocket do
{:cowboy_websocket, req, state}

int when is_integer(int) ->
:cowboy_req.reply(int, req)
_ = :cowboy_req.reply(int, req)
{:shutdown, req, :tests_are_fun}

:connection_wait ->
Expand Down

0 comments on commit 2409d68

Please sign in to comment.