Skip to content

Commit 590f14e

Browse files
authored
Apply suggestions from code review
1 parent df82998 commit 590f14e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mne_bids/path.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,10 +2546,7 @@ def _return_root_paths(root, datatype=None, ignore_json=True, ignore_nosub=False
25462546
else:
25472547
if datatype is not None:
25482548
datatype = _ensure_tuple(datatype)
2549-
search_str = f"**/{'|'.join(datatype)}/*"
2550-
2551-
# I think this one is more appropriate
2552-
search_str = search_str + ".*"
2549+
search_str = f"**/{'|'.join(datatype)}/.*"
25532550
else:
25542551
search_str = "**/*.*"
25552552

0 commit comments

Comments
 (0)