fix: add countIssuesInJSONLFile wrapper function

The upstream main branch has calls to countIssuesInJSONLFile in doctor.go and init.go,
but the previous fix removed the function definition. Add it back as a simple wrapper
around countJSONLIssues that returns only the count.
This commit is contained in:
matt wilkie
2025-11-29 01:03:05 -07:00
parent ce36a6f6b4
commit 9b55c4d953

View File

@@ -1514,6 +1514,13 @@ func countJSONLIssues(jsonlPath string) (int, map[string]int, error) {
return count, prefixes, nil
}
// countIssuesInJSONLFile counts the number of valid issues in a JSONL file.
// This is a wrapper around countJSONLIssues that returns only the count.
func countIssuesInJSONLFile(jsonlPath string) int {
count, _, _ := countJSONLIssues(jsonlPath)
return count
}
func checkPermissions(path string) doctorCheck {
beadsDir := filepath.Join(path, ".beads")