diff options
| author | Jeff Carr <[email protected]> | 2025-10-14 22:17:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-14 22:17:16 -0500 |
| commit | 9f83060cccb6ee50ec14c02adb6711a3700d11be (patch) | |
| tree | b669036de40bfc47df4bb88a08a4755183042c2c /doStats.go | |
| parent | 90c62819d72fbd7fd68b7caed2ed60050ea4b71e (diff) | |
load stats
Diffstat (limited to 'doStats.go')
| -rw-r--r-- | doStats.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -32,18 +32,18 @@ func doVerify() (string, error) { func doStats(r *gitpb.Repo) (string, error) { var allerr error + pb, err := r.LoadStats() + allerr = errors.Join(allerr, err) + // collect the stats - err := collectStats(r) + err = collectStats(r, pb) allerr = errors.Join(allerr, err) // build() return "verify ran", nil } -func collectStats(r *gitpb.Repo) error { - if r.Stats == nil { - r.Stats = new(gitpb.Stats) - } +func collectStats(r *gitpb.Repo, pb *gitpb.Stats) error { if hasOrigin(r) { log.Info("repo doesn't have origin") } |
