Skip to content

Commit 29e6c4d

Browse files
committed
remove unused None codepath
1 parent 2970313 commit 29e6c4d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

parsl/executors/status_handling.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,11 @@ def _filter_scale_in_ids(self, to_kill: Sequence[Any], killed: Sequence[bool]) -
180180

181181
def scale_out_facade(self, n: int) -> List[str]:
182182
block_ids = self._scale_out(n)
183-
if block_ids is not None:
184-
new_status = {}
185-
for block_id in block_ids:
186-
new_status[block_id] = JobStatus(JobState.PENDING)
187-
self.send_monitoring_info(new_status)
188-
self._status.update(new_status)
183+
new_status = {}
184+
for block_id in block_ids:
185+
new_status[block_id] = JobStatus(JobState.PENDING)
186+
self.send_monitoring_info(new_status)
187+
self._status.update(new_status)
189188
return block_ids
190189

191190
def _scale_out(self, blocks: int = 1) -> List[str]:

0 commit comments

Comments
 (0)