Skip to content

Commit

Permalink
Remove unnecessary prefix handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Jun 15, 2024
1 parent 2a4c8d5 commit b96584e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions indra/databases/rgd_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ def get_name_from_id(rgd_id: str) -> Union[str, None]:
:
The RGD symbol for the given ID or None if not available.
"""
if rgd_id and rgd_id.startswith('RGD:'):
rgd_id = rgd_id[4:]
return rgd_id_to_name.get(rgd_id)


Expand All @@ -55,8 +53,6 @@ def get_synonyms(rgd_id: str) -> List[str]:
The list of synonyms corresponding to the RGD ID, or an empty list
if not available.
"""
if rgd_id and rgd_id.startswith('RGD:'):
rgd_id = rgd_id[4:]
return rgd_synonyms.get(rgd_id, [])


Expand Down

0 comments on commit b96584e

Please sign in to comment.