fix: remove dead LAST_WEEK_RATIO ternary — both branches are 0.0 (#19) #45
No reviewers
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#45
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/paper-dynasty-card-creation-19"
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?
Closes #19
Summary
Removes a dead conditional at
retrosheet_data.py:70where both branches of the ternary evaluated to0.0:Files Changed
retrosheet_data.py— 1-line change, no behaviour changeTests
No test suite in this repo. Change is a pure simplification with no functional impact.
AI Code Review
Files Reviewed
retrosheet_data.py(modified, line 70)Findings
Correctness
0.0, so the simplified assignment is behaviourally identical.LAST_WEEK_RATIO == 0.0or> 0— none of these are affected.Security
Style & Conventions
Suggestions
Verdict: COMMENT (LGTM)
Pure dead-code removal with no functional impact. The ternary was always
0.0 if … else 0.0, so collapsing it to a direct assignment is the right call. Safe to merge.Automated review by Claude PR Reviewer
Approved — safe bug fix per PO triage.