Bug 1716550 - Remove unnecessary 'ent' null-check. r=necko-reviewers,kershaw

The object is used earlier in the function.

Differential Revision: https://phabricator.services.mozilla.com/D117897
This commit is contained in:
Marco Castelluccio 2021-06-15 13:59:03 +00:00
Родитель 2c49a89614
Коммит eaa8bc77cc
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -1012,8 +1012,7 @@ nsresult DnsAndConnectSocket::TransportSetup::SetupConn(
RefPtr<HttpConnectionUDP> connUDP = do_QueryObject(conn);
rv = connUDP->Init(ent->mConnInfo, mDNSRecord, status, callbacks, cap);
if (NS_SUCCEEDED(rv)) {
if (gHttpHandler->IsHttp3Enabled() && gHttpHandler->CoalesceSpdy() &&
ent) {
if (gHttpHandler->IsHttp3Enabled() && gHttpHandler->CoalesceSpdy()) {
if (ent->MaybeProcessCoalescingKeys(mDNSRecord, true)) {
gHttpHandler->ConnMgr()->ProcessSpdyPendingQ(ent);
}