Skip to content

Commit f769cb3

Browse files
[PR #9678/7d2afcf4 backport][3.11] Remove dead code from WebSocketResponse.receive (#9682)
Co-authored-by: J. Nick Koston <[email protected]>
1 parent 37ef0fb commit f769cb3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

aiohttp/web_ws.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,6 @@ async def receive(self, timeout: Optional[float] = None) -> WSMessage:
509509
if self._reader is None:
510510
raise RuntimeError("Call .prepare() first")
511511

512-
loop = self._loop
513-
assert loop is not None
514512
receive_timeout = timeout or self._receive_timeout
515513
while True:
516514
if self._waiting:

0 commit comments

Comments
 (0)