R: fix antipattern

This commit is contained in:
Paul Hameteman 2025-10-14 21:29:08 +02:00
commit 49ad4e2437
2 changed files with 2 additions and 3 deletions

View file

@ -4,6 +4,7 @@
- [x] dead code
- [x] magic strings/numbers
- [x] bad naming
- [x] antipattern
- [ ] scopes
# RPP

View file

@ -44,9 +44,7 @@ class Rover {
val position: String
get() = "${state.positionX} ${state.positionY} ${state.direction}"
fun pos(): String {
return position
}
fun pos(): String = position
private var state = RoverState()
}