diff options
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") } |
