diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index e8281306..6e64e9b7 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.5.9 f02d194791a9873939a345457964d65bf1e957f7 + +# Scala Steward: Reformat with scalafmt 3.8.6 +52734ae9409004d8b740d19a30bdb93667efcc45 diff --git a/.scalafmt.conf b/.scalafmt.conf index b994a565..7e48ebec 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.8.3" +version = "3.8.6" maxColumn = 120 runner.dialect = scala213 diff --git a/core/test/src/com/bot4s/telegram/api/CommandsSuite.scala b/core/test/src/com/bot4s/telegram/api/CommandsSuite.scala index 043cc260..0e63a4fe 100644 --- a/core/test/src/com/bot4s/telegram/api/CommandsSuite.scala +++ b/core/test/src/com/bot4s/telegram/api/CommandsSuite.scala @@ -34,10 +34,10 @@ class CommandsSuite extends AnyFlatSpec with MockFactory with TestUtils with Com )(implicit encT: Encoder[T], decR: Decoder[R]): Future[R] = ??? override def apply[R](request: Request[R]): Future[R] = request match { case GetMe => - Future.successful({ + Future.successful { val jsonUser = toJson[User](botUser) fromJson[User](jsonUser)(userDecoder) - }) + } case _ => throw new Exception("Do know what to do") } } diff --git a/examples/src-jvm/WebhookSSLBot.scala b/examples/src-jvm/WebhookSSLBot.scala index 8c887f16..8fa17334 100644 --- a/examples/src-jvm/WebhookSSLBot.scala +++ b/examples/src-jvm/WebhookSSLBot.scala @@ -48,7 +48,7 @@ class WebhookSSLBot(token: String) extends AkkaExampleBot(token) with Webhook { InputFile(new File(getClass().getClassLoader().getResource("ssl/mts.pem").toURI()).toPath) ) - override val httpsContext: Option[HttpsConnectionContext] = Some({ + override val httpsContext: Option[HttpsConnectionContext] = Some { val password = "changeit".toCharArray() val ks = KeyStore.getInstance("PKCS12") @@ -68,7 +68,7 @@ class WebhookSSLBot(token: String) extends AkkaExampleBot(token) with Webhook { val https: HttpsConnectionContext = ConnectionContext.httpsServer(sslContext) https - }) + } override def receiveMessage(msg: Message): Future[Unit] = msg.text.fold(Future.successful(())) { text =>