Skip to content

Commit 6c77285

Browse files
committed
remove expression that always evaluates to True
1 parent 385b18b commit 6c77285

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

rclpy/rclpy/executors.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ def wait(self, timeout_sec=None):
5555
if timeout_sec is not None and timeout_sec < 0:
5656
timeout_sec = None
5757
# Wait for all work to complete
58-
if timeout_sec is None or timeout_sec >= 0:
59-
with self._work_condition:
60-
if not self._work_condition.wait_for(
61-
lambda: self._num_work_executing == 0, timeout_sec):
62-
return False
58+
with self._work_condition:
59+
if not self._work_condition.wait_for(
60+
lambda: self._num_work_executing == 0, timeout_sec):
61+
return False
6362
return True
6463

6564

0 commit comments

Comments
 (0)