Skip to content

Commit

Permalink
Attend to LINT sillyness (#8276)
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Feb 23, 2019
1 parent 242c9bc commit 20fb04d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/network/address.cpp
Expand Up @@ -282,10 +282,8 @@ bool Address::isLocalhost() const

auto addr = m_address.ipv6.sin6_addr.s6_addr;

// clang-format off
return memcmp(addr, localhost_bytes, 16) == 0 ||
memcmp(addr, mapped_ipv4_localhost, 13) == 0;
// clang-format on
}

return (m_address.ipv4.sin_addr.s_addr & 0xFF) == 0x7f;
Expand Down
1 change: 1 addition & 0 deletions util/travis/clang-format-whitelist.txt
Expand Up @@ -256,6 +256,7 @@ src/minimap.cpp
src/minimap.h
src/mods.cpp
src/mods.h
src/network/address.cpp
src/network/clientopcodes.cpp
src/network/clientopcodes.h
src/network/clientpackethandler.cpp
Expand Down

0 comments on commit 20fb04d

Please sign in to comment.