R: Fix coverage issue
This commit is contained in:
parent
2c372a8f51
commit
bc7f93c387
1 changed files with 3 additions and 3 deletions
|
|
@ -8,10 +8,10 @@ class Rover {
|
|||
state.copy(
|
||||
positionX = command[ROVER_STARTING_POSITION_X].toInt(),
|
||||
positionY = command[ROVER_STARTING_POSITION_Y].toInt(),
|
||||
heading =
|
||||
Heading.from(command[ROVER_FACING_DIRECTION][ROVER_COMMANDLIST_DIRECTION])
|
||||
?: state.heading,
|
||||
)
|
||||
Heading.from(command[ROVER_FACING_DIRECTION][ROVER_COMMANDLIST_DIRECTION])?.let {
|
||||
state = state.copy(heading = it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue