R: fix antipattern
This commit is contained in:
parent
b00ba62f16
commit
49ad4e2437
2 changed files with 2 additions and 3 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue