diff --git a/internal/ackhandler/received_packet_handler.go b/internal/ackhandler/received_packet_handler.go index 1a5bdd891..89fb30d31 100644 --- a/internal/ackhandler/received_packet_handler.go +++ b/internal/ackhandler/received_packet_handler.go @@ -130,9 +130,7 @@ func (h *receivedPacketHandler) IsPotentiallyDuplicate(pn protocol.PacketNumber, return h.handshakePackets.IsPotentiallyDuplicate(pn) } case protocol.Encryption0RTT, protocol.Encryption1RTT: - if h.appDataPackets != nil { - return h.appDataPackets.IsPotentiallyDuplicate(pn) - } + return h.appDataPackets.IsPotentiallyDuplicate(pn) } panic("unexpected encryption level") }