Skip to content

Conversation

@JeffFaer
Copy link
Collaborator

if !lineRange.empty() {
  finishGroup()
}

guarantees that lineRange.empty() will be true after it (finishGroup zeroes out lineRange). That lets us get rid of one of the branches in the metadata.opts.Group conditional. But now the remaining branch shares a lot in common with the else branch, so we can simplify a bit further.

…hes.

```
if !lineRange.empty() {
  finishGroup()
}
```

guarantees that `lineRange.empty()` will be true after it (`finishGroup`
zeroes out `lineRange`). That lets us get rid of one of the branches in
the `metadata.opts.Group` conditional. But now the remaining branch
shares a lot in common with the `else` branch, so we can simplify a bit
further.
@JeffFaer JeffFaer enabled auto-merge (squash) November 13, 2025 04:27
@JeffFaer JeffFaer merged commit c5af544 into main Nov 25, 2025
8 checks passed
@JeffFaer JeffFaer deleted the jfaer/cleanup branch November 25, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants