diff options
| author | Jeff Carr <[email protected]> | 2025-10-16 02:21:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-16 02:21:32 -0500 |
| commit | 246771554e3b9abc8d070864c0c90de3d4647b58 (patch) | |
| tree | 18b1d5d6c7e6a038b537e42130c25278d70db842 /doStats.go | |
| parent | 43750a33995434b6e699bd1fbcc6ea442f238d12 (diff) | |
argv cleanups for doVerify
Diffstat (limited to 'doStats.go')
| -rw-r--r-- | doStats.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -14,12 +14,12 @@ import ( "google.golang.org/protobuf/types/known/timestamppb" ) -func doVerify() (string, error) { +func doStats() (string, error) { var allerr error - if argv.Verify.All != nil { + if argv.All { for r := range me.forge.Repos.IterByFullPath() { if r.Stats().Len() == 0 { - _, err := doStats(r) + _, err := doStatsRepo(r) allerr = errors.Join(allerr, err) } } @@ -31,7 +31,7 @@ func doVerify() (string, error) { return "no repo", errors.New("working dir isn't a repo I know about") } - s, err := doStats(repo) + s, err := doStatsRepo(repo) allerr = errors.Join(allerr, err) user, err := refHash(repo, "heads/"+repo.GetUserBranchName()) @@ -48,7 +48,7 @@ func doVerify() (string, error) { return s, allerr } -func doStats(r *gitpb.Repo) (string, error) { +func doStatsRepo(r *gitpb.Repo) (string, error) { var allerr error pb, err := r.LoadStats() if err == nil { |
