Fix clang-tidy bugprone-branch-clone warnings in headers

This commit is contained in:
Tim Wojtulewicz 2025-06-08 22:20:40 -07:00
parent 694e53e47b
commit b27eba6533
3 changed files with 5 additions and 5 deletions

View file

@ -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