Merge pull request #3048 from q191201771/redundant-nil-check

remove redundant nil-check in the packet packer
This commit is contained in:
Marten Seemann 2021-02-19 15:42:44 +08:00 committed by GitHub
commit 972a08c40d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),