Skip to content

Commit

Permalink
fixing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
achaiah authored Jun 28, 2021
1 parent 45e8ebb commit 31231cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmcv/utils/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def _scandir(dir_path, suffix, recursive):
rel_path = osp.relpath(entry.path, root)
if suffix is None or rel_path.endswith(suffix):
yield rel_path
elif recursive and os.path.isdir(entry.path):
yield from _scandir(entry.path, suffix=suffix, recursive=recursive)
elif recursive and os.path.isdir(entry.path):
yield from _scandir(entry.path, suffix=suffix, recursive=recursive)

return _scandir(dir_path, suffix=suffix, recursive=recursive)

Expand Down

0 comments on commit 31231cf

Please sign in to comment.