mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-22 19:08:39 +00:00
Fix collapsible_if clippy in object.setLiveShape relative radii path.
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
a719b22e1b
commit
240d8d4891
1 file changed
+5
-5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user