BAEL-586 no need for else block
This commit is contained in:
parent
79d13928e5
commit
fde39503a3
|
@ -61,9 +61,6 @@ fun main(args: Array<String>) {
|
||||||
when (name) {
|
when (name) {
|
||||||
"John" -> println("Hi man")
|
"John" -> println("Hi man")
|
||||||
"Alice" -> println("Hi lady")
|
"Alice" -> println("Hi lady")
|
||||||
else -> {
|
|
||||||
println("Hi")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue