Skip to content

Commit

Permalink
removed unneccessary flag
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCox822 committed Feb 26, 2024
1 parent 7fd4c3a commit dd9aa14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mdagent/utils/path_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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):
Expand Down

0 comments on commit dd9aa14

Please sign in to comment.