Skip to content

Commit

Permalink
duplicate conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
ankona committed Jul 24, 2024
1 parent 1e4bda7 commit 6f9ad9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions smartsim/_core/launcher/dragon/pqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@ def _get_next_n_available_nodes(
# TODO: convert return type to an actual node or the hostname
next_node: t.Optional[_NodeRefCount] = self._get_next_available_node(heap)
while len(next_nodes) < n and next_node is not None:
if next_node is not None:
next_nodes.append(next_node)

next_nodes.append(next_node)
next_node = self._get_next_available_node(heap)

return next_nodes
Expand Down

0 comments on commit 6f9ad9c

Please sign in to comment.