diff --git a/pytcp/protocols/udp/udp__packet_handler_rx.py b/pytcp/protocols/udp/udp__packet_handler_rx.py index b2694244..ffe463c8 100755 --- a/pytcp/protocols/udp/udp__packet_handler_rx.py +++ b/pytcp/protocols/udp/udp__packet_handler_rx.py @@ -140,8 +140,7 @@ def _phrx_udp(self, packet_rx: PacketRx, /) -> None: ) for socket_pattern in packet_rx_md.socket_patterns: - socket = stack.sockets.get(socket_pattern, None) - if socket: + if socket := stack.sockets.get(socket_pattern, None): self.packet_stats_rx.udp__socket_match += 1 __debug__ and log( "udp",