Fix lint errors

This commit is contained in:
Sean King 2022-03-20 17:26:07 -06:00
commit 4194559ea6
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
2 changed files with 18 additions and 7 deletions

View file

@ -188,8 +188,8 @@ defmodule Pleroma.Integration.WebsocketClient do
defp stream_frame(state, frame) do
with {:ok, websocket, data} <- Mint.WebSocket.encode(state.websocket, frame),
state = put_in(state.websocket, websocket),
{:ok, conn} <- Mint.WebSocket.stream_request_body(state.conn, state.request_ref, data) do
{:ok, put_in(state.conn, conn)}
{:ok, conn} <- Mint.WebSocket.stream_request_body(state.conn, state.request_ref, data) do
{:ok, put_in(state.conn, conn)}
else
{:error, %Mint.WebSocket{} = websocket, reason} ->
{:error, put_in(state.websocket, websocket), reason}