Skip to content

Commit

Permalink
fix(linter): replace bitwise AND (&) with logical AND (&&) in explici…
Browse files Browse the repository at this point in the history
…t_function_return_type rule
  • Loading branch information
kaykdm committed Sep 15, 2024
1 parent 91bb06e commit c263f0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c263f0e

Please sign in to comment.