diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index e8281306..a4bbd418 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 +82ff4f4e5d61d43e254ef00896844555f528eb90 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 63034ba0..61f6e3cc 100644 --- a/core/test/src/com/bot4s/telegram/api/CommandsSuite.scala +++ b/core/test/src/com/bot4s/telegram/api/CommandsSuite.scala @@ -38,10 +38,10 @@ class CommandsSuite extends AnyFlatSpec with MockFactory with TestUtils with Com )(implicit d: Decoder[request.Response]): Future[request.Response] = request match { case GetMe => - Future.successful({ + Future.successful { val jsonUser = toJson[User](botUser) fromJson[User](jsonUser).asInstanceOf[request.Response] - }) + } case _ => throw new Exception("Do know what to do") } } diff --git a/examples/src-jvm-2/WebhookSSLBot.scala b/examples/src-jvm-2/WebhookSSLBot.scala index edcc32cb..11331a58 100644 --- a/examples/src-jvm-2/WebhookSSLBot.scala +++ b/examples/src-jvm-2/WebhookSSLBot.scala @@ -48,7 +48,7 @@ class WebhookSSLBot(token: String) extends PekkoExampleBot(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 PekkoExampleBot(token) with Webhook { val https: HttpsConnectionContext = ConnectionContext.httpsServer(sslContext) https - }) + } override def receiveMessage(msg: Message): Future[Unit] = msg.text.fold(Future.successful(())) { text =>