remove extraneous assignment

This commit is contained in:
Sebastian Law
2020-12-22 04:18:32 -08:00
committed by GitHub
parent 116fdbddb9
commit 36292a65ea

View File

@ -688,8 +688,6 @@ class ConnectionState:
log.debug('CHANNEL_CREATE referencing an unknown channel type %s. Discarding.', data['type']) log.debug('CHANNEL_CREATE referencing an unknown channel type %s. Discarding.', data['type'])
return return
channel = None
if ch_type in (ChannelType.group, ChannelType.private): if ch_type in (ChannelType.group, ChannelType.private):
channel_id = int(data['id']) channel_id = int(data['id'])
if self._get_private_channel(channel_id) is None: if self._get_private_channel(channel_id) is None: