mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
style: Use 'not in' consistently rather than not foo in.
This commit is contained in:
@@ -118,7 +118,7 @@ class SocketConnection(sockjs.tornado.SockJSConnection):
|
||||
if msg['request']['csrf_token'] != self.csrf_token:
|
||||
raise SocketAuthError('CSRF token does not match that in cookie')
|
||||
|
||||
if not 'queue_id' in msg['request']:
|
||||
if 'queue_id' not in msg['request']:
|
||||
raise SocketAuthError("Missing 'queue_id' argument")
|
||||
|
||||
queue_id = msg['request']['queue_id']
|
||||
|
||||
Reference in New Issue
Block a user