From 4a558edc5909a6d4eb36093fa0704c643caca2cd Mon Sep 17 00:00:00 2001 From: Ronan Lamy Date: Fri, 30 Sep 2022 12:42:02 +0100 Subject: [PATCH] ls-url: remove now unused _ls_url() --- dvc/repo/ls_url.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dvc/repo/ls_url.py b/dvc/repo/ls_url.py index e9b0e551f..f237bc3e7 100644 --- a/dvc/repo/ls_url.py +++ b/dvc/repo/ls_url.py @@ -12,16 +12,10 @@ def parse_external_url(url, config=None): def ls_url(url, config=None, recursive=False): fs, fs_path = parse_external_url(url, config=config) - return _ls_url(fs, fs_path, orig_url=url, recursive=recursive) - - -def _ls_url(fs, fs_path, orig_url=None, recursive=False): - if orig_url is None: - orig_url = fs_path try: info = fs.info(fs_path) except FileNotFoundError as exc: - raise URLMissingError(orig_url) from exc + raise URLMissingError(url) from exc if info["type"] != "directory": return [{"path": info["name"], "isdir": False}]