Skip to content

Commit 4663e22

Browse files
committed
Remove unnecessary path.is_dir() call
1 parent a9780b9 commit 4663e22

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bids2table/_indexing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,7 @@ def _get_bids_dataset(path: str | Path) -> tuple[str | None, Path | None]:
293293
if isinstance(path, str):
294294
path = Path(path)
295295

296-
parent = path if path.is_dir() else path.parent
297-
296+
parent = path
298297
parts: list[str] = []
299298
scanning = False
300299
top_idx = None

0 commit comments

Comments
 (0)