Skip to content

Commit

Permalink
remove else
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalzauberzeug committed Sep 26, 2024
1 parent f839fe9 commit f351881
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions field_friend/automations/navigation/field_navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,9 @@ async def _run_row_completed(self) -> State:
assert self.field
next_state: State = State.ROW_COMPLETED
if self.current_row == self.field.rows[-1]:
next_state = State.FIELD_COMPLETED
await rosys.sleep(0.1) # wait for base class to finish navigation
else:
self.row_index += 1
next_state = State.APPROACHING_ROW_START
return State.FIELD_COMPLETED
self.row_index += 1
next_state = State.APPROACHING_ROW_START

# TODO: remove later, when any direction is possible
if self.row_index >= len(self.field.rows):
Expand Down

0 comments on commit f351881

Please sign in to comment.