Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored Jun 30, 2024
1 parent 9ad3ec2 commit 6331932
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/syft/src/syft/service/network/node_peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ def pick_highest_priority_route(self, oldest: bool = True) -> NodeRoute:
if oldest:
if route.priority < highest_priority_route.priority:
highest_priority_route = route
else:
if route.priority > highest_priority_route.priority:
highest_priority_route = route
elif route.priority > highest_priority_route.priority:
highest_priority_route = route
return highest_priority_route

def update_route(self, route: NodeRoute) -> None:
Expand Down

0 comments on commit 6331932

Please sign in to comment.