mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Remove redundant code
This commit is contained in:
parent
3686f6921d
commit
4784ba53e1
@ -60,8 +60,4 @@ class TCPAbridged(TCP):
|
||||
if length is None:
|
||||
return None
|
||||
|
||||
length = int.from_bytes(length, "little") * 4
|
||||
|
||||
packet = super().recvall(length)
|
||||
|
||||
return packet
|
||||
return super().recvall(int.from_bytes(length, "little") * 4)
|
||||
|
@ -50,6 +50,4 @@ class TCPIntermediate(TCP):
|
||||
if length is None:
|
||||
return None
|
||||
|
||||
packet = super().recvall(unpack("<I", length)[0])
|
||||
|
||||
return packet
|
||||
return super().recvall(unpack("<I", length)[0])
|
||||
|
Loading…
x
Reference in New Issue
Block a user