Skip to content

Commit

Permalink
Delete dead nozzle_map==None code.
Browse files Browse the repository at this point in the history
`nozzle_map` cannot be `None` since #14529.
  • Loading branch information
SyntaxColoring committed Oct 10, 2024
1 parent 79c33ff commit 249efb6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions api/src/opentrons/protocol_engine/state/tips.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,8 @@ def handle_action(self, action: Action) -> None:
pipette_id = action.private_result.pipette_id
nozzle_map = action.private_result.nozzle_map
pipette_info = self._state.pipette_info_by_pipette_id[pipette_id]
if nozzle_map:
pipette_info.active_channels = nozzle_map.tip_count
pipette_info.nozzle_map = nozzle_map
else:
# todo(mm, 2024-10-10): nozzle_map looks always truthy--can this
# else-block actually run?
pipette_info.active_channels = pipette_info.channels
pipette_info.active_channels = nozzle_map.tip_count
pipette_info.nozzle_map = nozzle_map

elif isinstance(action, FailCommandAction):
self._handle_failed_command(action)
Expand Down

0 comments on commit 249efb6

Please sign in to comment.