diff --git a/packages/packages.go b/packages/packages.go index e701db1..d7c2476 100644 --- a/packages/packages.go +++ b/packages/packages.go @@ -496,22 +496,20 @@ func GetPackagesCount() domain.PackagesCount { Queued: 0, Building: 0, } - currentPackages.ForEach(func(k string, v domain.SourcePackage) bool { - v.Packages.ForEach(func(k string, pkg domain.PackageInfo) bool { - switch pkg.Status { - case domain.Stale: - count.Stale++ - case domain.Missing: - count.Missing++ - case domain.Built: - count.Current++ - case domain.Current: - count.Current++ - case domain.Error: - count.Error++ - } - return false - }) + currentPackages.ForEach(func(k string, pkg domain.SourcePackage) bool { + switch pkg.Status { + case domain.Stale: + count.Stale++ + case domain.Missing: + count.Missing++ + case domain.Built: + count.Current++ + case domain.Current: + count.Current++ + case domain.Error: + count.Error++ + } + return true })