Skip to content

refactor: use early exits to reduce nesting#197

Merged
zharinov merged 1 commit intomasterfrom
refactor/early-exits
Dec 31, 2025
Merged

refactor: use early exits to reduce nesting#197
zharinov merged 1 commit intomasterfrom
refactor/early-exits

Conversation

@zharinov
Copy link
Copy Markdown
Member

Summary

  • Use continue in diagnostics printer loop to reduce nesting for cross-file snippet handling
  • Use early return in format_node_with_field for empty children case, flattening main logic
  • Use early return in unwrap_optional for non-optional case, putting success path at end

Test plan

  • All 672 tests pass

@zharinov zharinov enabled auto-merge (squash) December 31, 2025 12:55
@zharinov zharinov merged commit 160be4c into master Dec 31, 2025
4 checks passed
@zharinov zharinov deleted the refactor/early-exits branch December 31, 2025 12:56
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.

1 participant