Skip to content

Commit

Permalink
Merge pull request #498 from scala-steward-bot/update/scalafmt-core-3…
Browse files Browse the repository at this point in the history
….8.4

Update scalafmt-core to 3.8.4
  • Loading branch information
xuwei-k authored Jan 13, 2025
2 parents dfdc414 + d81ca59 commit 8c92ca6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.8.4
61994fc63c6b335e440e2a8c98676db376a30c03
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ docstrings.style = keep
includeCurlyBraceInSelectChains = false
optIn.breakChainOnFirstMethodDot = false
trailingCommas = preserve
version = "3.8.3"
version = "3.8.4"
project.layout = StandardConvention
rewrite.scala3.convertToNewSyntax = true
fileOverride {
Expand Down
3 changes: 1 addition & 2 deletions macros/src/main/scala-3/scalapb_circe/ProtoMacrosCirce.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ object ProtoMacrosCirce {
def apply(j: Json)(using Quotes) = j.foldWith[Expr[Json]](new Json.Folder[Expr[Json]] {
override def onNull = '{ Json.Null }
override def onBoolean(value: Boolean) = {
if (value) '{ Json.True }
else '{ Json.False }
if (value) '{ Json.True } else '{ Json.False }
}
override def onNumber(value: JsonNumber) =
'{ Json.fromJsonNumber(${ summon[ToExpr[JsonNumber]].apply(value) }) }
Expand Down

0 comments on commit 8c92ca6

Please sign in to comment.