fs: _get_dvc_path() cannot be called with dvc_fs=None

This commit is contained in:
Ronan Lamy
2022-09-08 17:39:32 +03:00
committed by Ruslan Kuprieiev
parent d4170b2ec0
commit b99a0cd6ca
+1 -2
View File
@@ -60,8 +60,7 @@ def _merge_info(repo, fs_info, dvc_info):
def _get_dvc_path(dvc_fs, dvc_parts):
if dvc_fs:
return dvc_fs.path.join(*dvc_parts) if dvc_parts else ""
return dvc_fs.path.join(*dvc_parts) if dvc_parts else ""
class _DvcFileSystem(AbstractFileSystem): # pylint:disable=abstract-method