Skip to content

fix: remove duplicate sumUserCostInTimeRange function definition#363

Merged
ding113 merged 1 commit intofeat/user-panelfrom
claude-fix-pr-362-20344971247
Dec 18, 2025
Merged

fix: remove duplicate sumUserCostInTimeRange function definition#363
ding113 merged 1 commit intofeat/user-panelfrom
claude-fix-pr-362-20344971247

Conversation

@github-actions
Copy link
Contributor

CI Auto-Fix

Original PR: #362
Failed CI Run: Non-Main Branch CI/CD

Root Cause

The build failed due to a duplicate function definition in src/repository/statistics.ts:

Error: Turbopack build failed with 1 errors:
./src/repository/statistics.ts:874:23
the name `sumUserCostInTimeRange` is defined multiple times

The function sumUserCostInTimeRange was defined twice:

  • Lines 816-834: Original definition (kept)
  • Lines 874-892: Duplicate with identical implementation (removed)

Fix Applied

File Fix Type
src/repository/statistics.ts Removed duplicate sumUserCostInTimeRange function definition Build error

Verification

  • Duplicate function removed (now only 1 definition exists)
  • No logic changes made - the remaining function has identical implementation
  • Change is minimal (23 lines deleted)

Auto-generated by Claude AI

The function `sumUserCostInTimeRange` was defined twice in statistics.ts:
- Lines 816-834: Original definition for user limit percentage display
- Lines 874-892: Duplicate with identical implementation

Removed the duplicate definition (lines 871-892) which was causing
Turbopack build error: "the name `sumUserCostInTimeRange` is defined
multiple times"

CI Run: https://github.com/ding113/claude-code-hub/actions/runs/20344971247
@ding113 ding113 merged this pull request into feat/user-panel Dec 18, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in Claude Code Hub Roadmap Dec 18, 2025
@ding113 ding113 deleted the claude-fix-pr-362-20344971247 branch December 23, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant

Comments