Skip to content

Commit 9282943

Browse files
committed
Fix lint
1 parent f611579 commit 9282943

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

libs/extractor/src/extractor/extract_style_from_expression.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,13 @@ pub fn extract_style_from_expression<'a>(
216216
} else {
217217
StyleSelector::from([&selector.to_string(), *name]).to_string()
218218
}
219+
} else if name.starts_with("_") {
220+
StyleSelector::from(
221+
to_kebab_case(&name.replace("_", "")).as_str(),
222+
)
223+
.to_string()
219224
} else {
220-
if name.starts_with("_") {
221-
StyleSelector::from(
222-
to_kebab_case(&name.replace("_", "")).as_str(),
223-
)
224-
.to_string()
225-
} else {
226-
StyleSelector::from(name.replace("_", "").as_str()).to_string()
227-
}
225+
StyleSelector::from(name.replace("_", "").as_str()).to_string()
228226
}
229227
})
230228
.collect::<Vec<_>>()

0 commit comments

Comments
 (0)