Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivalldi committed Sep 19, 2023
1 parent 1466bc8 commit 85f8bf4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn is_known_accumulator(node: &JsSpread, model: &SemanticModel) -> Option<bool>
.items()
.into_iter()
.count();
if param_count < 2 || param_count > 4 {
if !(2..=4).contains(&param_count) {
return None;
}

Expand Down

0 comments on commit 85f8bf4

Please sign in to comment.