|
65 | 65 | // Handle text content.
|
66 | 66 | if body.has("text") {
|
67 | 67 | let (text, ..fields) = body.fields()
|
68 |
| - if "label" in fields { fields.remove("label") } |
| 68 | + let _ = if "label" in fields { fields.remove("label") } |
69 | 69 | let label = if body.has("label") { body.label }
|
70 | 70 | let func(it) = if it != none { body.func()(..fields, it) }
|
71 | 71 | let (first, second, sep) = split(text, index)
|
|
75 | 75 | // Handle content with "body" field.
|
76 | 76 | if body.func() in splittable {
|
77 | 77 | let (body: text, ..fields) = body.fields()
|
78 |
| - if "label" in fields { fields.remove("label") } |
| 78 | + let _ = if "label" in fields { fields.remove("label") } |
79 | 79 | let label = if body.has("label") { body.label }
|
80 | 80 | let func(it) = if it != none { body.func()(..fields, it) }
|
81 | 81 | let (first, second, sep) = split(text, index)
|
|
85 | 85 | // Handle styled content.
|
86 | 86 | if body.has("child") {
|
87 | 87 | let (child, styles, ..fields) = body.fields()
|
88 |
| - if "label" in fields { fields.remove("label") } |
| 88 | + let _ = if "label" in fields { fields.remove("label") } |
89 | 89 | let label = if body.has("label") { body.label }
|
90 | 90 | let func(it) = if it != none { body.func()(it, styles) }
|
91 | 91 | let (first, second, sep) = split(child, index)
|
|
0 commit comments