mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
Fix confusing and/or incorrect condition in linter (#446)
This commit is contained in:
parent
ffa2895e5a
commit
631062514c
1 changed files with 3 additions and 2 deletions
|
|
@ -55,8 +55,9 @@ impl Rule for EqEqEq {
|
|||
matches!(unary_expr.operator, UnaryOperator::Typeof)
|
||||
}
|
||||
(lhs, rhs) => {
|
||||
(lhs.is_null() || rhs.is_null())
|
||||
|| lhs.is_literal_expression() && rhs.is_literal_expression()
|
||||
lhs.is_null()
|
||||
|| rhs.is_null()
|
||||
|| (lhs.is_literal_expression() && rhs.is_literal_expression())
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue