Attend to LINT sillyness (#8276)

This commit is contained in:
Paramat 2019-02-23 02:41:36 +00:00 committed by GitHub
parent 242c9bc36e
commit 20fb04d9fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

@ -282,10 +282,8 @@ bool Address::isLocalhost() const
auto addr = m_address.ipv6.sin6_addr.s6_addr; auto addr = m_address.ipv6.sin6_addr.s6_addr;
// clang-format off
return memcmp(addr, localhost_bytes, 16) == 0 || return memcmp(addr, localhost_bytes, 16) == 0 ||
memcmp(addr, mapped_ipv4_localhost, 13) == 0; memcmp(addr, mapped_ipv4_localhost, 13) == 0;
// clang-format on
} }
return (m_address.ipv4.sin_addr.s_addr & 0xFF) == 0x7f; return (m_address.ipv4.sin_addr.s_addr & 0xFF) == 0x7f;

@ -256,6 +256,7 @@ src/minimap.cpp
src/minimap.h src/minimap.h
src/mods.cpp src/mods.cpp
src/mods.h src/mods.h
src/network/address.cpp
src/network/clientopcodes.cpp src/network/clientopcodes.cpp
src/network/clientopcodes.h src/network/clientopcodes.h
src/network/clientpackethandler.cpp src/network/clientpackethandler.cpp