Skip to content

Commit e7b572e

Browse files
STY: Apply ruff rule RUF021
RUF021 Parenthesize `a and b` expressions when chaining `and` and `or` together, to make the precedence clear
1 parent 590bc1b commit e7b572e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/engine/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def _local_hash_check(self, jobid, graph):
303303
overwrite = self.procs[jobid].overwrite
304304
always_run = self.procs[jobid].interface.always_run
305305

306-
if cached and updated and (overwrite is False or overwrite is None and not always_run):
306+
if cached and updated and (overwrite is False or (overwrite is None and not always_run)):
307307
try:
308308
self._task_finished_cb(jobid, cached=True)
309309
self._remove_node_dirs()

0 commit comments

Comments
 (0)