Remove unreachable code in noise frame helper (#682)

This commit is contained in:
J. Nick Koston 2023-11-24 08:29:42 -06:00 committed by GitHub
parent c21e32fda7
commit 39aba56958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,9 +288,6 @@ class APINoiseFrameHelper(APIFrameHelper):
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:
assert self._encrypt is not None, "Handshake should be complete"