forked from quic-go/quic-go
Merge pull request #3048 from q191201771/redundant-nil-check
remove redundant nil-check in the packet packer
This commit is contained in:
@@ -323,9 +323,6 @@ func (p *packetPacker) MaybePackAckPacket(handshakeConfirmed bool) (*packedPacke
|
||||
}
|
||||
encLevel = protocol.Encryption1RTT
|
||||
}
|
||||
if ack == nil {
|
||||
return nil, nil
|
||||
}
|
||||
payload := &payload{
|
||||
ack: ack,
|
||||
length: ack.Length(p.version),
|
||||
|
||||
Reference in New Issue
Block a user