Browse Source

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

debug-remote-ip
Alexander Strizhakov 4 years ago
parent
commit
614e3934f9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/pleroma/http/http.ex

+ 2
- 2
lib/pleroma/http/http.ex View File

@@ -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


Loading…
Cancel
Save