Remove unnecessary branch

This commit is contained in:
Dan 2017-12-28 13:10:01 +01:00
parent 211381a9a8
commit df5cee5b03

View File

@ -275,12 +275,10 @@ class Session:
if isinstance(i.body, (types.BadMsgNotification, types.BadServerSalt)): if isinstance(i.body, (types.BadMsgNotification, types.BadServerSalt)):
msg_id = i.body.bad_msg_id msg_id = i.body.bad_msg_id
elif isinstance(i.body, types.RpcResult): elif isinstance(i.body, (core.FutureSalts, types.RpcResult)):
msg_id = i.body.req_msg_id msg_id = i.body.req_msg_id
elif isinstance(i.body, types.Pong): elif isinstance(i.body, types.Pong):
msg_id = i.body.msg_id msg_id = i.body.msg_id
elif isinstance(i.body, core.FutureSalts):
msg_id = i.body.req_msg_id
else: else:
if self.update_handler: if self.update_handler:
self.update_handler(i.body) self.update_handler(i.body)