From 1c8f55d397acb6b653d83f050d15329d7de33bfd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 13 Dec 2024 20:32:07 -0600 Subject: move checks to panic in safer places --- human.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'human.go') diff --git a/human.go b/human.go index 5b2aaf9..942c578 100644 --- a/human.go +++ b/human.go @@ -55,7 +55,7 @@ func PrintReport(readonly string, onlydirty string, perfect string) { log.Info(fmt.Sprintf("EVERYTHING WORKED repo count = %d", count)) } -func PrintReleaseReport(readonly string, perfect string) { +func PrintReleaseReport(readonly string, perfect string) int { var count int log.Info(repolist.ReleaseReportHeader()) @@ -81,4 +81,5 @@ func PrintReleaseReport(readonly string, perfect string) { log.Info(me.forge.StandardReleaseHeader(check, state)) } log.Info(fmt.Sprintf("total repo count = %d", count)) + return count } -- cgit v1.2.3