Remove unreachable code in noise frame helper (#682)
This commit is contained in:
parent
c21e32fda7
commit
39aba56958
|
@ -288,9 +288,6 @@ class APINoiseFrameHelper(APIFrameHelper):
|
||||||
|
|
||||||
Packets are in the format of tuple[protobuf_type, protobuf_data]
|
Packets are in the format of tuple[protobuf_type, protobuf_data]
|
||||||
"""
|
"""
|
||||||
if self._state != NOISE_STATE_READY:
|
|
||||||
raise HandshakeAPIError(f"{self._log_name}: Noise connection is not ready")
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
assert self._encrypt is not None, "Handshake should be complete"
|
assert self._encrypt is not None, "Handshake should be complete"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue