mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
QA Simplifier (v1.4.39): the cumulative-vs-spot sparkline branch in the `sparkByType` loop was a nested ternary (`useSum ? (row.sum_value !== null ? sum : mean * count) : mean`). CLAUDE.md bans nested ternaries; the fix hoists the cumulative branch into a named local so the outer ternary is single-level.