diff --git a/mdagent/utils/path_registry.py b/mdagent/utils/path_registry.py index 85509206..4c65e0cb 100644 --- a/mdagent/utils/path_registry.py +++ b/mdagent/utils/path_registry.py @@ -168,7 +168,7 @@ def _remove_path_from_json(self, fileid): return f"File {fileid} removed from registry" return f"Path {fileid} not found in registry" - def list_path_names(self, list_only=False): + def list_path_names(self): if not self._check_for_json(): return "JSON file does not exist" with open(self.json_file_path, "r") as json_file: @@ -180,8 +180,6 @@ def list_path_names(self, list_only=False): else "No names found. The JSON file is empty or does not" "contain name mappings." ) - if list_only: - msg = filesids return msg def list_path_names_and_descriptions(self):