mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
9340f2d3bc
commit
36f8bc5edc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user