mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Fix/simplify some if statement comparisons
This commit is contained in:
parent
103b381874
commit
5bfd84a903
7 changed files with 13 additions and 12 deletions
|
@ -2066,7 +2066,7 @@ bool same_type(const Type& arg_t1, const Type& arg_t2, bool is_init, bool match_
|
|||
|
||||
// If one is a set and one isn't, they shouldn't
|
||||
// be considered the same type.
|
||||
if ( (t1->IsSet() && ! t2->IsSet()) || (t2->IsSet() && ! t1->IsSet()) )
|
||||
if ( t1->IsSet() != t2->IsSet() )
|
||||
return false;
|
||||
|
||||
const auto& y1 = t1->Yield();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue