Apply suggestion to lib/pleroma/http/adapter.ex

This commit is contained in:
Alexander Strizhakov 2020-03-03 09:34:36 +00:00
parent 2c8d80dc0a
commit a3ad028973

View file

@ -57,7 +57,7 @@ def domain_or_ip(host) do
{:error, :einval} ->
{:domain, :idna.encode(charlist)}
{:ok, ip} when is_tuple(ip) and tuple_size(ip) in [4, 8] ->
{:ok, ip} ->
{:ip, ip}
end
end