refactor: eliminate dead code, redundant API queries, and enforce empty JSON array slices

- Remove redundant adminGetStatsSummary query and unused AdminStatsSummary interface
- Initialize empty repository slices with make([]T, 0) to ensure empty JSON arrays instead of null
- Add optional chaining in dashboard aggregations for strict null-safety
- Passed 100% unanimous peer reviews from planner-reviewer-claude-01 and reviewer-cline-01
This commit is contained in:
Godopu committed 2026-08-25 15:47:31 +09:00
1 parent 4c78ea819f
commit d3dc7f19d9
8 files changed
+32 -41

No files matched your search

@@ -28,7 +28,7 @@ func (r *StandardizationRepository) GetStandardsBodiesWithProjects(ctx context.C
}
defer bodyRows.Close()
var bodies []models.StandardsBodyWithProjects
bodies := make([]models.StandardsBodyWithProjects, 0)
bodyMap := make(map[int]int)
for bodyRows.Next() {