Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update scalafmt-core to 3.8.6 #456

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Scala Steward: Reformat with scalafmt 3.5.9
f02d194791a9873939a345457964d65bf1e957f7

# Scala Steward: Reformat with scalafmt 3.8.6
52734ae9409004d8b740d19a30bdb93667efcc45
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.8.3"
version = "3.8.6"
maxColumn = 120

runner.dialect = scala213
Expand Down
4 changes: 2 additions & 2 deletions core/test/src/com/bot4s/telegram/api/CommandsSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/src-jvm/WebhookSSLBot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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 =>
Expand Down
Loading