Skip to content

Commit

Permalink
Add a todo comment for redundancy between get_slice() and `get_curr…
Browse files Browse the repository at this point in the history
…ent()`.
  • Loading branch information
SyntaxColoring committed May 20, 2024
1 parent 93ca5db commit 7701de4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/opentrons/protocol_engine/state/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,8 @@ def get_slice(
queued_command_ids = self._state.command_history.get_queue_ids()
total_length = self._state.command_history.length()

# TODO(mm, 2024-05-17): This looks like it's attempting to do the same thing
# as self.get_current(), but in a different way. Can we unify them?
if cursor is None:
if running_command is not None:
cursor = running_command.index
Expand Down

0 comments on commit 7701de4

Please sign in to comment.