diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 85ee6d7..937295f 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.8.1 499baded20f959dca86ad7a24d2244b7241de8c3 + +# Scala Steward: Reformat with scalafmt 3.10.1 +69aa7a84876d15a96741ce0cb163d63c9a156049 diff --git a/.scalafmt.conf b/.scalafmt.conf index b81a039..09e246b 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,5 +1,5 @@ runner.dialect = scala213 -version = 3.8.6 +version = 3.10.1 maxColumn = 120 fileOverride { "glob:**/scala-3/**" { diff --git a/ws/src/main/scala/sttp/ws/WebSocket.scala b/ws/src/main/scala/sttp/ws/WebSocket.scala index 0b156a3..48c5e38 100644 --- a/ws/src/main/scala/sttp/ws/WebSocket.scala +++ b/ws/src/main/scala/sttp/ws/WebSocket.scala @@ -48,8 +48,8 @@ trait WebSocket[F[_]] { */ def receiveDataFrame(pongOnPing: Boolean = true): F[WebSocketFrame.Data[_]] = receive().flatMap { - case close: WebSocketFrame.Close => monad.error(WebSocketClosed(Some(close))) - case d: WebSocketFrame.Data[_] => monad.unit(d) + case close: WebSocketFrame.Close => monad.error(WebSocketClosed(Some(close))) + case d: WebSocketFrame.Data[_] => monad.unit(d) case WebSocketFrame.Ping(payload) if pongOnPing => send(WebSocketFrame.Pong(payload)) // https://github.com/softwaremill/sttp/issues/2236: after a Ping frame is received, the WS might have become