diff --git a/crates/biome_js_analyze/src/semantic_analyzers/nursery/no_accumulating_spread.rs b/crates/biome_js_analyze/src/semantic_analyzers/nursery/no_accumulating_spread.rs index d1d1df42df4f..9ff791b0348e 100644 --- a/crates/biome_js_analyze/src/semantic_analyzers/nursery/no_accumulating_spread.rs +++ b/crates/biome_js_analyze/src/semantic_analyzers/nursery/no_accumulating_spread.rs @@ -106,7 +106,7 @@ fn is_known_accumulator(node: &JsSpread, model: &SemanticModel) -> Option .items() .into_iter() .count(); - if param_count < 2 || param_count > 4 { + if !(2..=4).contains(¶m_count) { return None; }