Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ccie18643 committed Sep 10, 2024
1 parent e745222 commit a14760f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytcp/protocols/udp/udp__packet_handler_rx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a14760f

Please sign in to comment.