From 6331932b6884ca75ccd9eabcd25f0bc7f2fc77c8 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 30 Jun 2024 21:34:52 +0200 Subject: [PATCH] Linter --- packages/syft/src/syft/service/network/node_peer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/syft/src/syft/service/network/node_peer.py b/packages/syft/src/syft/service/network/node_peer.py index 23c1ffc7057..efb3b35c831 100644 --- a/packages/syft/src/syft/service/network/node_peer.py +++ b/packages/syft/src/syft/service/network/node_peer.py @@ -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: