Skip to content

Commit a1195ad

Browse files
committed
Formatting corrections provided by make cleanup which are relevant to this issue. Other changes were offered by the tool, but they are outside the scope of this issue.
1 parent 694a6de commit a1195ad

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cwltool/task_queue.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import threading
88
from typing import Callable, Optional
99

10-
from .errors import WorkflowKillSwitch
1110
from .context import RuntimeContext
11+
from .errors import WorkflowKillSwitch
1212
from .loghandler import _logger
1313

1414

@@ -103,10 +103,7 @@ def add(
103103
try:
104104
if unlock is not None:
105105
unlock.release()
106-
if (
107-
(check_done is not None and check_done.is_set())
108-
or self.kill_switch.is_set()
109-
):
106+
if (check_done is not None and check_done.is_set()) or self.kill_switch.is_set():
110107
with self.lock:
111108
self.in_flight -= 1
112109
return

0 commit comments

Comments
 (0)