       trailers = {:trailers, _} ->
         trailers
 
-      error = {:error, _} ->
+      {:error, _} = error ->
         error
 
       other ->

      {:response, headers, fin} ->
        {:ok, headers, fin}

      error = {:error, _} ->
        error

      other ->


      {:error, reason} ->
        :gun.shutdown(conn_pid)
        {:error, reason}
    end
  end

