Remove unnecessary if clause

This commit is contained in:
Serhii Dylda 2020-11-09 20:09:08 +01:00
parent 38d8a54cc1
commit a68800b3f0

View File

@ -169,9 +169,7 @@ class Connection(abc.ABC):
# Create a non-blocking socket and bind it (if local address is specified).
sock = socket.socket(mode, socket.SOCK_STREAM)
sock.setblocking(False)
if local_addr is not None:
sock.bind(local_addr)
sock.bind(local_addr)
# Actual TCP connection is performed here.
await asyncio.wait_for(