From dae2653975b6db822633430a97adbb21b52a99ff Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 11 Dec 2024 19:31:37 -0600 Subject: use 'all' instead of 'loop' --- build.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build.go') diff --git a/build.go b/build.go index 14c9f6f..5b3abf2 100644 --- a/build.go +++ b/build.go @@ -48,9 +48,9 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err version := repo.GetCurrentBranchVersion() /* - loop := repo.Tags.SortByRefname() - for loop.Scan() { - t := loop.Next() + all := repo.Tags.SortByRefname() + for all.Scan() { + t := all.Next() log.Info("Build() tag:", t.Refname) } */ @@ -66,9 +66,9 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err } // run autogenpb in all protobuf repos - loop1 := repo.GoDeps.SortByGoPath() - for loop1.Scan() { - t := loop1.Next() + all := repo.GoDeps.SortByGoPath() + for all.Scan() { + t := all.Next() found := f.Repos.FindByGoPath(t.GetGoPath()) if found.RepoType() == "protobuf" { if err := f.runAutogenpb(found); err != nil { -- cgit v1.2.3