d08b18f5f8
Converted from the relevant intention Reported cases: one-liners, whens Also, more exact caret detection in local inspection tests
7 lines
113 B
Kotlin
Vendored
7 lines
113 B
Kotlin
Vendored
fun sign(x: Int): Int {
|
|
<caret>return when {
|
|
x < 0 -> -1
|
|
x > 0 -> 1
|
|
else -> 0
|
|
}
|
|
} |