2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Remove redundant code

This commit is contained in:
Dan 2018-01-18 12:22:16 +01:00
parent 3686f6921d
commit 4784ba53e1
2 changed files with 2 additions and 8 deletions

View File

@ -60,8 +60,4 @@ class TCPAbridged(TCP):
if length is None: if length is None:
return None return None
length = int.from_bytes(length, "little") * 4 return super().recvall(int.from_bytes(length, "little") * 4)
packet = super().recvall(length)
return packet

View File

@ -50,6 +50,4 @@ class TCPIntermediate(TCP):
if length is None: if length is None:
return None return None
packet = super().recvall(unpack("<I", length)[0]) return super().recvall(unpack("<I", length)[0])
return packet