Refine code style

This commit is contained in:
Mygod
2019-04-14 13:23:21 +08:00
parent 44a0f675ed
commit 243d103ca7
4 changed files with 12 additions and 18 deletions

View File

@@ -59,9 +59,8 @@ object SpanFormatter {
val argTerm = m.group(1)
val modTerm = m.group(2)
val typeTerm = m.group(3)
val cookedArg = when (typeTerm) {
val cookedArg = when (val typeTerm = m.group(3)) {
"%" -> "%"
"n" -> "\n"
else -> {