Skip to content

refactor: remove redundant else branches - #542

Merged
tenthirtyam merged 1 commit into
mainfrom
refactor/remove-redundant-else-branches
Aug 13, 2026
Merged

refactor: remove redundant else branches#542
tenthirtyam merged 1 commit into
mainfrom
refactor/remove-redundant-else-branches

Conversation

@tenthirtyam

Copy link
Copy Markdown
Collaborator

Summary

Simplified control flow by removing else blocks that followed early return/halt paths. This aligns with idiomatic Go style, reduces nesting, and keeps behavior unchanged, including test expectations and state updates.

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Output:

Documentation

  • Documentation has been added or updated.

Issue References

Release Note

Additional Information

@tenthirtyam tenthirtyam added this to the v2.1.5 milestone Aug 13, 2026
@tenthirtyam tenthirtyam self-assigned this Aug 13, 2026
@tenthirtyam
tenthirtyam requested a review from a team as a code owner August 13, 2026 12:36
@tenthirtyam tenthirtyam added the refactor Refactor label Aug 13, 2026
@github-actions github-actions Bot added needs-review Needs Review size/xs Relative Sizing: Extra-Small labels Aug 13, 2026
Simplified control flow by removing `else` blocks that followed early `return`/halt paths. This aligns with idiomatic Go style, reduces nesting, and keeps behavior unchanged, including test expectations and state updates.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam
tenthirtyam force-pushed the refactor/remove-redundant-else-branches branch from 1c52b8d to d11c625 Compare August 13, 2026 12:42
@tenthirtyam
tenthirtyam merged commit b4dbafb into main Aug 13, 2026
10 checks passed
@tenthirtyam
tenthirtyam deleted the refactor/remove-redundant-else-branches branch August 13, 2026 12:42
@tenthirtyam tenthirtyam removed the needs-review Needs Review label Aug 13, 2026
@github-actions

Copy link
Copy Markdown

This functionality has been released in v2.1.5 of the plugin.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactor size/xs Relative Sizing: Extra-Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant