Skip to content

Commit 257bda6

Browse files
committed
Remove reduntant test, EOF is detected inside _readline()
1 parent 42bb8f5 commit 257bda6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

redis/asyncio/connection.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ async def _read_response(
264264
if not self._stream or not self.encoder:
265265
raise ConnectionError(SERVER_CLOSED_CONNECTION_ERROR)
266266
raw = await self._readline()
267-
if not raw:
268-
raise ConnectionError(SERVER_CLOSED_CONNECTION_ERROR)
269267
response: Any
270268
byte, response = raw[:1], raw[1:]
271269

0 commit comments

Comments
 (0)