summaryrefslogtreecommitdiff
path: root/doStats.go
diff options
context:
space:
mode:
Diffstat (limited to 'doStats.go')
-rw-r--r--doStats.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/doStats.go b/doStats.go
index e69d384..2f42dbb 100644
--- a/doStats.go
+++ b/doStats.go
@@ -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 {