Skip to content

Commit c89957f

Browse files
committed
remove unused None codepath
1 parent 604f397 commit c89957f

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
@@ -190,12 +190,11 @@ def _filter_scale_in_ids(self, to_kill: Sequence[Any], killed: Sequence[bool]) -
190190

191191
def scale_out_facade(self, n: int) -> List[str]:
192192
block_ids = self._scale_out(n)
193-
if block_ids is not None:
194-
new_status = {}
195-
for block_id in block_ids:
196-
new_status[block_id] = JobStatus(JobState.PENDING)
197-
self.send_monitoring_info(new_status)
198-
self._status.update(new_status)
193+
new_status = {}
194+
for block_id in block_ids:
195+
new_status[block_id] = JobStatus(JobState.PENDING)
196+
self.send_monitoring_info(new_status)
197+
self._status.update(new_status)
199198
return block_ids
200199

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

0 commit comments

Comments
 (0)