Flatten deep nesting in tui.py and git_gate.py #288
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From quality-eval audit (medium priority).
~80 lines nest past 5 indent levels, concentrated in
bot_bottle/cli/tui.pyandbot_bottle/git_gate.py.Task: Apply guard clauses / early returns (the codebase already favors
if … return None) to pull the worst offenders back under 4 indent levels. Behavior unchanged.No PRD required (refactor).