Skip to content

Commit 01c34c5

Browse files
committed
Drop unneeded conditional
1 parent ae8bbad commit 01c34c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kafka/conn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,7 @@ def connect(self):
330330
# if we got here through a host lookup,
331331
# we've found a (host, port, af) tuple that works
332332
# and we can stop iterating through the getaddrinfo list
333-
if self._gai is not None:
334-
self._gai = None
333+
self._gai = None
335334
except socket.error as err:
336335
ret = err.errno
337336

0 commit comments

Comments
 (0)