Skip to content

Commit 93d1774

Browse files
STY: Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent e22dcdb commit 93d1774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ def _list_outputs(self):
13001300
if self.inputs.drop_blank_outputs:
13011301
outputs[key] = [x for x in outputs[key] if x is not None]
13021302
else:
1303-
if any(val is None for val in outputs[key]):
1303+
if None in outputs[key]:
13041304
outputs[key] = []
13051305
if len(outputs[key]) == 0:
13061306
outputs[key] = None

0 commit comments

Comments
 (0)