no need in this

This commit is contained in:
Alex S 2019-08-19 18:05:57 +03:00
parent 3bc3e61dc5
commit af12d08da7
1 changed files with 1 additions and 5 deletions

View File

@ -19,11 +19,7 @@ defmodule Pleroma.Gun.Connections do
@spec start_link({atom(), keyword()}) :: {:ok, pid()} | :ignore
def start_link({name, opts}) do
if Application.get_env(:tesla, :adapter) == Tesla.Adapter.Gun do
GenServer.start_link(__MODULE__, opts, name: name)
else
:ignore
end
GenServer.start_link(__MODULE__, opts, name: name)
end
@impl true