Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and andy31415 committed Dec 16, 2024
1 parent 01aceee commit 1cbc1f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/address_resolve/AddressResolve_DefaultImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,13 @@ bool NodeLookupResults::UpdateResults(const ResolveResult & result, const Dnssd:

auto & oldAddress = results[insertAtIndex].address;

if (oldAddress == result.address) {
if (oldAddress == result.address)
{
// this address is already in our list.
return false;
}

auto oldScore = Dnssd::IPAddressSorter::ScoreIpAddress(oldAddress.GetIPAddress(), oldAddress.GetInterface());
auto oldScore = Dnssd::IPAddressSorter::ScoreIpAddress(oldAddress.GetIPAddress(), oldAddress.GetInterface());
if (newScore > oldScore)
{
// This is a score update, it will replace a previous entry.
Expand Down

0 comments on commit 1cbc1f2

Please sign in to comment.