mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
Merge pull request #3048 from q191201771/redundant-nil-check
remove redundant nil-check in the packet packer
This commit is contained in:
commit
972a08c40d
1 changed files with 0 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue