Skip to content

Commit 20fb04d

Browse files
authored
Attend to LINT sillyness (#8276)
1 parent 242c9bc commit 20fb04d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/network/address.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,8 @@ bool Address::isLocalhost() const
282282

283283
auto addr = m_address.ipv6.sin6_addr.s6_addr;
284284

285-
// clang-format off
286285
return memcmp(addr, localhost_bytes, 16) == 0 ||
287286
memcmp(addr, mapped_ipv4_localhost, 13) == 0;
288-
// clang-format on
289287
}
290288

291289
return (m_address.ipv4.sin_addr.s_addr & 0xFF) == 0x7f;

util/travis/clang-format-whitelist.txt

+1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ src/minimap.cpp
256256
src/minimap.h
257257
src/mods.cpp
258258
src/mods.h
259+
src/network/address.cpp
259260
src/network/clientopcodes.cpp
260261
src/network/clientopcodes.h
261262
src/network/clientpackethandler.cpp

0 commit comments

Comments
 (0)