From c99ec922aa6df4187c80cc9f111d11502d4c432d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 26 Jun 2026 11:59:33 +0200 Subject: [PATCH] Cleanup --- RNS/Transport.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 9f4f37c3..8bb4f183 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -3071,25 +3071,19 @@ class Transport: def from_local_client(packet): if hasattr(packet.receiving_interface, "parent_interface"): return Transport.is_local_client_interface(packet.receiving_interface) - else: - return False + else: return False @staticmethod def is_local_client_interface(interface): if hasattr(interface, "parent_interface"): - if hasattr(interface.parent_interface, "is_local_shared_instance"): - return True - else: - return False - else: - return False + if hasattr(interface.parent_interface, "is_local_shared_instance"): return True + else: return False + else: return False @staticmethod def interface_to_shared_instance(interface): - if hasattr(interface, "is_connected_to_shared_instance"): - return True - else: - return False + if hasattr(interface, "is_connected_to_shared_instance"): return True + else: return False @staticmethod def detach_interfaces():