mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
fix(linter): replace bitwise AND (&) with logical AND (&&) in explici… (#5780)
…t_function_return_type rule This PR fixes an issue where the Bitwise AND (&) operator was mistakenly used in a conditional statement, instead of the Logical AND (&&) operator.
This commit is contained in:
parent
e613a3d877
commit
148c7a8b82
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ impl Rule for ExplicitFunctionReturnType {
|
|||
fn run<'a>(&self, node: &AstNode<'a>, ctx: &LintContext<'a>) {
|
||||
match node.kind() {
|
||||
AstKind::Function(func) => {
|
||||
if !func.is_declaration() & !func.is_expression() {
|
||||
if !func.is_declaration() && !func.is_expression() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue