New J2K: Put braces on same line, if block is empty
This commit is contained in:
committed by
Ilya Kirillov
parent
63fd2439bf
commit
1b7c980c83
@@ -178,7 +178,7 @@ class NewCodeBuilder {
|
||||
printer.printWithNoIndent(")", ": ")
|
||||
ktFunction.returnType.accept(this)
|
||||
if (ktFunction.block !== JKBodyStub) {
|
||||
printer.block(multiline = true) {
|
||||
printer.block(multiline = ktFunction.block.statements.isNotEmpty()) {
|
||||
ktFunction.block.accept(this)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user