From: Alexander Strizhakov Date: Tue, 3 Mar 2020 09:50:42 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/http/http.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=614e3934f9190ff199df087de34146ad5f34c660;p=akkoma Apply suggestion to lib/pleroma/http/http.ex --- diff --git a/lib/pleroma/http/http.ex b/lib/pleroma/http/http.ex index ad47dc936..5fb468689 100644 --- a/lib/pleroma/http/http.ex +++ b/lib/pleroma/http/http.ex @@ -64,8 +64,8 @@ defmodule Pleroma.HTTP do client <- Tesla.client([Tesla.Middleware.FollowRedirects], tesla_adapter()), pid <- Process.whereis(adapter_opts[:pool]) do pool_alive? = - if tesla_adapter() == Tesla.Adapter.Gun do - if pid, do: Process.alive?(pid), else: false + if tesla_adapter() == Tesla.Adapter.Gun && pid do + Process.alive?(pid) else false end