Skip to content

Commit fde3950

Browse files
author
Tomasz Lelek
committed
BAEL-586 no need for else block
1 parent 79d1392 commit fde3950

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎kotlin/src/main/kotlin/com/baeldung/ItemService.kt‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ fun main(args: Array<String>) {
6161
when (name) {
6262
"John" -> println("Hi man")
6363
"Alice" -> println("Hi lady")
64-
else -> {
65-
println("Hi")
66-
}
6764
}
6865

6966
}

0 commit comments

Comments
 (0)