mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix clang-tidy bugprone-branch-clone warnings in headers
This commit is contained in:
parent
694e53e47b
commit
b27eba6533
3 changed files with 5 additions and 5 deletions
2
src/IP.h
2
src/IP.h
|
@ -366,7 +366,7 @@ public:
|
|||
*/
|
||||
const ip6_mobility* MobilityHeader() const {
|
||||
if ( ip4 )
|
||||
return nullptr;
|
||||
return nullptr; // NOLINT(bugprone-branch-clone)
|
||||
else if ( (*ip6_hdrs)[ip6_hdrs->Size() - 1]->Type() != IPPROTO_MOBILITY )
|
||||
return nullptr;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue