Apply suggestion to lib/pleroma/pool/connections.ex
[akkoma] / lib / pleroma / pool / connections.ex
index a444f822ff97ab0f8357271e5d70309302fc87bc..c4c5fd66c20785d23bb0ed66e7e2b8ce2e6a1ecf 100644 (file)
@@ -128,7 +128,7 @@ defmodule Pleroma.Pool.Connections do
     Logger.debug("checkin #{key}")
 
     case state.conns[key] do
-      %{conn: conn, gun_state: gun_state} = current_conn when gun_state == :up ->
+      %{conn: conn, gun_state: :up} = current_conn ->
         Logger.debug("reusing conn #{key}")
 
         with time <- :os.system_time(:second),
@@ -145,7 +145,7 @@ defmodule Pleroma.Pool.Connections do
           {:reply, conn, state}
         end
 
-      %{gun_state: gun_state} when gun_state == :down ->
+      %{gun_state: :down} ->
         {:reply, nil, state}
 
       nil ->