Skip to content

Commit

Permalink
fs: remove obsolete special cases
Browse files Browse the repository at this point in the history
  • Loading branch information
rlamy committed Aug 23, 2022
1 parent 72d06e1 commit 4b4f25d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions dvc/fs/dvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,7 @@ def _get_fs_pair(
dvc_fs = self._datafss.get(())
else:
repo_parts = fs.path.relparts(repo.root_dir, self.repo.root_dir)
if repo_parts[0] == os.curdir:
repo_parts = repo_parts[1:]

dvc_parts = key[len(repo_parts) :]
if dvc_parts and dvc_parts[0] == os.curdir:
dvc_parts = dvc_parts[1:]

key = self._get_key(repo.root_dir)
dvc_fs = self._datafss.get(key)

Expand Down

0 comments on commit 4b4f25d

Please sign in to comment.