Cleanup getLineCount
This commit is contained in:
committed by
Nikita Bobko
parent
603bae398f
commit
a94d2211e4
Vendored
+4
-6
@@ -18,11 +18,9 @@ fun foo(o: Any) {
|
||||
val x = i(o)
|
||||
}
|
||||
|
||||
private fun i(o: Any): Int {
|
||||
return when (o) {
|
||||
is A -> {
|
||||
if (o is T) o.a + o.t else o.a
|
||||
}
|
||||
else -> o.hashCode()
|
||||
private fun i(o: Any) = when (o) {
|
||||
is A -> {
|
||||
if (o is T) o.a + o.t else o.a
|
||||
}
|
||||
else -> o.hashCode()
|
||||
}
|
||||
Reference in New Issue
Block a user