Skip to content

Commit

Permalink
Update crates/oxc_linter/src/rules/eslint/default_param_last.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Mar 20, 2024
1 parent 3a5704d commit 538ed4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/eslint/default_param_last.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Rule for DefaultParamLast {
fn run<'a>(&self, node: &AstNode<'a>, ctx: &LintContext<'a>) {
match node.kind() {
AstKind::Function(function) => {
if !function.is_declaration() & !function.is_expression() {
if !function.is_declaration() && !function.is_expression() {
return;
}
check_params(&function.params.items, ctx);
Expand Down

0 comments on commit 538ed4b

Please sign in to comment.