Skip to content

Commit 85fd0ba

Browse files
committed
Fix warning regarding discarding content
1 parent a5210cf commit 85fd0ba

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/equate.typ

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,15 @@
287287
.map(((i, line)) => {
288288
if i in revoked {
289289
// Remove "revoke" label and space and return line.
290-
line.remove(-1)
291-
if line.at(-2, default: none) == [ ] { line.remove(-2) }
290+
let _ = line.remove(-1)
291+
let _ = if line.at(-2, default: none) == [ ] { line.remove(-2) }
292292
return line
293293
}
294294

295295
if i not in labelled { return line }
296296

297297
// Remove trailing spacing (before label).
298-
if line.at(-2, default: none) == [ ] { line.remove(-2) }
298+
let _ = if line.at(-2, default: none) == [ ] { line.remove(-2) }
299299

300300
// Append sub-numbering.
301301
let nums = main-number + if numbered.len() > 0 {
@@ -313,7 +313,7 @@
313313
supplement: supplement
314314
)#label(line.last().text.slice(1, -1))]
315315

316-
return line
316+
line
317317
})
318318
)
319319
}
@@ -326,9 +326,9 @@
326326
if line.last().lang != "typc" { return line }
327327
if line.last().text.match(regex("^<.+>$")) == none { return line }
328328

329-
line.remove(-1)
330-
if line.at(-1, default: none) == [ ] { line.remove(-1) }
331-
return line
329+
let _ = line.remove(-1)
330+
let _ = if line.at(-1, default: none) == [ ] { line.remove(-1) }
331+
line
332332
})
333333
}
334334

0 commit comments

Comments
 (0)