Skip to content

Commit

Permalink
Refactor code to avoid unnecessary delay in code (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd authored Mar 21, 2024
1 parent 0d4bcbc commit c64c448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kgcl_schema/grammar/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@ def get_entity_representation(entity):


def contract_uri(uri_or_curie: str):
converter = get_curie_converter()
if uri_or_curie.startswith("http://") or uri_or_curie.startswith("https://"):
converter = get_curie_converter()
return converter.compress(uri_or_curie)
else:
return uri_or_curie
Expand Down

0 comments on commit c64c448

Please sign in to comment.