Implement Unwrap/Remove for conditionals and loops
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// OPTION: 1
|
||||
fun foo(n: Int): Int {
|
||||
return if (n > 0) {
|
||||
n + 10
|
||||
} <caret>else {
|
||||
n - 10
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// OPTION: 1
|
||||
fun foo(n: Int): Int {
|
||||
return if (n > 0) {
|
||||
n + 10
|
||||
<caret> }
|
||||
}
|
||||
Reference in New Issue
Block a user