Skip to content

Commit 922fdf8

Browse files
ctruchiCLOVIS-AI
authored andcommitted
tp9 step 4 solution
1 parent dfb3922 commit 922fdf8

File tree

1 file changed

+1
-0
lines changed
  • tp9/src/main/kotlin/fmt/kotlin/fundamentals

1 file changed

+1
-0
lines changed

tp9/src/main/kotlin/fmt/kotlin/fundamentals/Cellar.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ data class Cellar(
2525
with(Session.currentUser) {
2626
when (role) {
2727
OWNER -> bottles.add(bottle)
28+
.also { println(bottle) }
2829
BUYER -> throw UnauthorizedException(login)
2930
}
3031
}

0 commit comments

Comments
 (0)