From dd9aa1435ed8d395eef44d68b5a2efb79d0b5bdc Mon Sep 17 00:00:00 2001 From: Sam Cox Date: Mon, 26 Feb 2024 12:53:10 -0800 Subject: [PATCH] removed unneccessary flag --- mdagent/utils/path_registry.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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):