Apply suggestion to lib/pleroma/http/adapter.ex
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 3 Mar 2020 09:34:36 +0000 (09:34 +0000)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 3 Mar 2020 09:34:36 +0000 (09:34 +0000)
lib/pleroma/http/adapter.ex

index 6166a3eb49f541dba80e931d142b38915b5de99d..32046b1d3aba8fd1dcb14695c3100b5cd4766721 100644 (file)
@@ -57,7 +57,7 @@ defmodule Pleroma.HTTP.Adapter 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