From 0317b7231c5c4066a461cd42c689d9d2e94c3dcb Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Fri, 24 Jan 2025 06:04:27 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.8.6 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 52734ae9409004d8b740d19a30bdb93667efcc45 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Fri, 24 Jan 2025 06:04:34 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.8.6 Executed command: scalafmt --non-interactive --- core/test/src/com/bot4s/telegram/api/CommandsSuite.scala | 4 ++-- examples/src-jvm/WebhookSSLBot.scala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 => From ec776b50a82587ec37c9ac6aca0295802e0d1a72 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Fri, 24 Jan 2025 06:04:34 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.8.6' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 3 +++ 1 file changed, 3 insertions(+) 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