Removes unnecessary else/elif blocks (#26884)
This commit is contained in:
1 parent
18873d202d
commit
b1118cb8ff
13 files changed
+53
-42
No files matched your search
@@ -165,7 +165,7 @@ class WebSocketHandler:
|
||||
if msg.type in (WSMsgType.CLOSE, WSMsgType.CLOSING):
|
||||
break
|
||||
|
||||
elif msg.type != WSMsgType.TEXT:
|
||||
if msg.type != WSMsgType.TEXT:
|
||||
disconnect_warn = "Received non-Text message."
|
||||
break
|
||||
|
||||
|
||||
Reference in new issue
Block a user