fix: remove duplicate countIssuesInJSONLFile function

Fixes build failure in Test, Lint, Test (Windows), and Test Nix Flake jobs.
The function was defined in both init.go and doctor.go. Removed the init.go
version which is now unused. The doctor.go version (which calls
countJSONLIssues) is the canonical implementation.

Fixes #19780439467
This commit is contained in:
matt wilkie
2025-11-29 00:39:28 -07:00
parent 078efdf07b
commit e24147c2fe
2 changed files with 77 additions and 80 deletions

View File

@@ -1395,12 +1395,7 @@ Aborting.`, yellow("⚠"), filepath.Base(jsonlPath), issueCount, cyan("bd doctor
return nil // No existing data found, safe to init
}
// countIssuesInJSONLFile counts the number of issues in a JSONL file.
// Delegates to countJSONLIssues in doctor.go.
func countIssuesInJSONLFile(jsonlPath string) int {
count, _, _ := countJSONLIssues(jsonlPath)
return count
}
// setupClaudeSettings creates or updates .claude/settings.local.json with onboard instruction
func setupClaudeSettings(verbose bool) error {