mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Fix clang-tidy bugprone-branch-clone warnings
This commit is contained in:
parent
92854e95d3
commit
dbecfb5a2a
32 changed files with 132 additions and 247 deletions
|
@ -65,9 +65,7 @@ bool Key::operator<(const Key& rhs) const {
|
|||
}
|
||||
|
||||
bool Key::operator==(const Key& rhs) const {
|
||||
if ( size != rhs.size )
|
||||
return false;
|
||||
else if ( type != rhs.type )
|
||||
if ( size != rhs.size || type != rhs.type )
|
||||
return false;
|
||||
|
||||
return memcmp(data, rhs.data, size) == 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue