Bug 1774595 - Use the result of TRRService::IsConfirmed() as the return value, r=necko-reviewers,dragana

Differential Revision: https://phabricator.services.mozilla.com/D149732
This commit is contained in:
Kershaw Chang 2022-06-29 12:22:30 +00:00
parent 9340f2d3bc
commit 36f8bc5edc

View File

@ -892,12 +892,12 @@ bool nsHostResolver::TRRServiceEnabledForRecord(nsHostRecord* aRec) {
return false;
}
if (!TRRService::Get()->IsConfirmed()) {
bool isConfirmed = TRRService::Get()->IsConfirmed();
if (!isConfirmed) {
aRec->RecordReason(TRRSkippedReason::TRR_NOT_CONFIRMED);
return false;
}
return false;
return isConfirmed;
}
// returns error if no TRR resolve is issued