Skip to content

Commit

Permalink
Switch to is_binary
Browse files Browse the repository at this point in the history
  • Loading branch information
akoutmos committed Jan 31, 2020
1 parent 3c6defe commit 066d64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/amqp/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ defmodule AMQP.Connection do
end

# If the port is configured as a string, cast it to an integer
defp normalize_port(port) when is_bitstring(port), do: String.to_integer(port)
defp normalize_port(port) when is_binary(port), do: String.to_integer(port)
defp normalize_port(port), do: port

@doc """
Expand Down

0 comments on commit 066d64b

Please sign in to comment.