Minor: remove braces is now applicable for the whole loop or when entry
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
fun foo() {
|
||||
when (1) {
|
||||
else<caret> -> {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo() {
|
||||
when (1) {
|
||||
else -> foo()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun <T> doSomething(a: T) {}
|
||||
|
||||
fun foo() {
|
||||
<caret>while (true) {
|
||||
doSomething("test")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun <T> doSomething(a: T) {}
|
||||
|
||||
fun foo() {
|
||||
while (true) doSomething("test")
|
||||
}
|
||||
Reference in New Issue
Block a user