Skip to content

Commit

Permalink
Merge pull request #826 from scalacenter/update/scalafmt-core-3.8.4
Browse files Browse the repository at this point in the history
Update scalafmt-core to 3.8.4
  • Loading branch information
adpi2 authored Jan 14, 2025
2 parents b880b67 + 29e49cc commit 59374d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 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
7fd0641d92a10f1cc0d027860aa8c07caada0cdc
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.4"
project.git = true
align.preset = none
align.stripMargin = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ class ScalaSigPrinter(builder: StringBuilder) {

// Print result type
mt.resultType.get match {
case mt: MethodType => printMethodType(mt, printResult, pe)({})
case mt: MethodType => printMethodType(mt, printResult, pe) {}
case imt: ImplicitMethodType =>
printMethodType(imt, printResult, pe)({})
printMethodType(imt, printResult, pe) {}
case x =>
if (printResult) {
print(" : ")
Expand All @@ -396,7 +396,7 @@ class ScalaSigPrinter(builder: StringBuilder) {
for (param <- typeParams) addTypeParameter(param)
print(typeParamString(typeParams))
try
printMethodType(pt.typeRef.get, printResult)({})
printMethodType(pt.typeRef.get, printResult) {}
finally
for (param <- typeParams) removeTypeParameter(param)
// todo consider another method types
Expand Down Expand Up @@ -460,12 +460,10 @@ class ScalaSigPrinter(builder: StringBuilder) {
case _ => true
})
printMethodType(m.infoType, printResult = true)(
{
if (printBody)
print(
compiledCodeBody /* Print body only for non-abstract methods */
)
}
if (printBody)
print(
compiledCodeBody /* Print body only for non-abstract methods */
)
)
}
}
Expand Down

0 comments on commit 59374d8

Please sign in to comment.