Skip to content

Commit b12285e

Browse files
committed
Add new lines for redability
1 parent b9159b7 commit b12285e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

library/src/scala/tasty/util/ShowSourceCode.scala

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,13 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
165165
}
166166
self match {
167167
case Some(ValDef(_, TypeTree.Singleton(_), _)) =>
168-
if (stats1.nonEmpty) printBody(printSelf = false)
169-
case Some(ValDef(_, _, _)) => printBody(printSelf = true)
170-
case _ => if (stats1.nonEmpty) printBody(printSelf = false)
168+
if (stats1.nonEmpty)
169+
printBody(printSelf = false)
170+
case Some(ValDef(_, _, _)) =>
171+
printBody(printSelf = true)
172+
case _ =>
173+
if (stats1.nonEmpty)
174+
printBody(printSelf = false)
171175
}
172176
this
173177

0 commit comments

Comments
 (0)