diff --git a/crates/biome_css_analyze/src/lint/nursery/no_duplicate_selectors_keyframe_block.rs b/crates/biome_css_analyze/src/lint/nursery/no_duplicate_selectors_keyframe_block.rs index 4a3f66d815b6..8f7c70a8e620 100644 --- a/crates/biome_css_analyze/src/lint/nursery/no_duplicate_selectors_keyframe_block.rs +++ b/crates/biome_css_analyze/src/lint/nursery/no_duplicate_selectors_keyframe_block.rs @@ -54,8 +54,7 @@ impl Rule for NoDuplicateSelectorsKeyframeBlock { for keyframe_item in node.items() { match keyframe_item { AnyCssKeyframesItem::CssKeyframesItem(item) => { - let keyframe_selector = item.selectors().into_iter().next()?; - let keyframe_selector = keyframe_selector.ok()?; + let keyframe_selector = item.selectors().into_iter().next()?.ok()?; if !selector_list.insert(keyframe_selector.text().to_lowercase()) { return Some(keyframe_selector); } @@ -76,7 +75,7 @@ impl Rule for NoDuplicateSelectorsKeyframeBlock { }, ) .note(markup! { - "Consider using different selector here!" + "Consider using a different percentage value or keyword to avoid duplication" }), ) }