mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-17 18:46:40 +00:00
Remove unnecessary if
clause
This commit is contained in:
parent
38d8a54cc1
commit
a68800b3f0
@ -169,9 +169,7 @@ class Connection(abc.ABC):
|
|||||||
# Create a non-blocking socket and bind it (if local address is specified).
|
# Create a non-blocking socket and bind it (if local address is specified).
|
||||||
sock = socket.socket(mode, socket.SOCK_STREAM)
|
sock = socket.socket(mode, socket.SOCK_STREAM)
|
||||||
sock.setblocking(False)
|
sock.setblocking(False)
|
||||||
|
sock.bind(local_addr)
|
||||||
if local_addr is not None:
|
|
||||||
sock.bind(local_addr)
|
|
||||||
|
|
||||||
# Actual TCP connection is performed here.
|
# Actual TCP connection is performed here.
|
||||||
await asyncio.wait_for(
|
await asyncio.wait_for(
|
||||||
|
Loading…
Reference in New Issue
Block a user