Fix collapsible_if clippy in object.setLiveShape relative radii path.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
nrq6993-a11y
2026-10-21 23:38:03 +07:00
committed by bflatastic
co-authored by Cursor
parent a719b22e1b
commit 240d8d4891
+5 -5
View File
@@ -2428,11 +2428,11 @@ fn set_live_shape(s: &mut Session, p: &Value) -> Result<Value> {
}
*path = l.to_path();
}
if let Some(on) = relative_radii {
if let Some(l) = live.as_deref_mut() {
convert_radii_relative(l, on);
*path = l.to_path();
}
if let Some(on) = relative_radii
&& let Some(l) = live.as_deref_mut()
{
convert_radii_relative(l, on);
*path = l.to_path();
}
if radius.is_none() && kind.is_none() {
continue;