mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-23 17:54:22 +00:00
Apply suggestion to lib/pleroma/http/adapter.ex
This commit is contained in:
parent
2c8d80dc0a
commit
a3ad028973
|
@ -57,7 +57,7 @@ defmodule Pleroma.HTTP.Adapter do
|
||||||
{:error, :einval} ->
|
{:error, :einval} ->
|
||||||
{:domain, :idna.encode(charlist)}
|
{:domain, :idna.encode(charlist)}
|
||||||
|
|
||||||
{:ok, ip} when is_tuple(ip) and tuple_size(ip) in [4, 8] ->
|
{:ok, ip} ->
|
||||||
{:ip, ip}
|
{:ip, ip}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue