Skip to content

Commit 7223914

Browse files
shnizzedyeffigies
andauthored
FIX: Too much indentation
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent a693e12 commit 7223914

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

nipype/pipeline/plugins/tests/test_callback.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ def test_callback_gantt(tmp_path: Path, plugin: str) -> None:
9494
with open(log_filename, "r") as _f:
9595
loglines = _f.readlines()
9696

97-
# test missing duration
98-
first_line = json.loads(loglines[0])
99-
if "duration" in first_line:
100-
del first_line["duration"]
101-
loglines[0] = f"{json.dumps(first_line)}\n"
102-
103-
# test duplicate timestamp warning
104-
loglines.append(loglines[-1])
97+
# test missing duration
98+
first_line = json.loads(loglines[0])
99+
if "duration" in first_line:
100+
del first_line["duration"]
101+
loglines[0] = f"{json.dumps(first_line)}\n"
102+
103+
# test duplicate timestamp warning
104+
loglines.append(loglines[-1])
105105

106106
with open(log_filename, "w") as _f:
107107
_f.write("".join(loglines))

0 commit comments

Comments
 (0)