Text Frame Options: the paragraph spacing limit set without another branch in text_frame_options

Keeps the function within clippy's cognitive complexity limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
moppeeer
2026-10-29 16:26:34 +01:00
co-authored by Claude Opus 5.5
parent 4145fcbc44
commit 963ac447fa
+1 -3
View File
@@ -2592,9 +2592,7 @@ fn text_frame_options(s: &mut Session, p: &Value) -> Result<Value> {
if let Some(v) = reference {
o.auto_size_ref = v;
}
if let Some(v) = spacing_limit {
o.vj_paragraph_spacing_limit = v;
}
o.vj_paragraph_spacing_limit = spacing_limit.unwrap_or(o.vj_paragraph_spacing_limit);
if let Some(v) = p.get("useMinimumHeight").and_then(Value::as_bool) {
o.auto_size_use_min_height = v;
}