Fix unreachable duplicate elif 'DO*' branch in result_string()
#6
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#6
Loading…
Reference in New Issue
Block a user
No description provided.
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?
creation_helpers.py:882-884— Secondelif 'DO*'is dead code. First always matches. One adjustment (likely forDO**variant) is silently skipped, producing incorrect card formatting.Priority: medium | Labels: bug
Fixed in PR #39: #39
The second
elif "DO*"was replaced withelif "DO**"and reordered before the"DO*"check. Since"DO*" in "DO**"isTrue, the more-specificDO**branch must come first to be reachable. This restores the intendedspaces -= 2adjustment for double-double hits.