Skip to content

Commit

Permalink
remove if conditional and change approach to remove item from dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocapozzoli committed Jan 19, 2024
1 parent 80848b8 commit 1514438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hyperon_das/query_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ def get_incoming_links(
handle = local_link[0]['handle']
local_link = local_link[0]

if handle in remote_links_dict:
answer.append(local_link)
del remote_links_dict[handle]
answer.append(local_link)

remote_links_dict.pop(handle, None)

answer.extend(remote_links_dict.values())

Expand Down

0 comments on commit 1514438

Please sign in to comment.