Apply go fix -waitgroup ./...

This commit is contained in:
Michael Eischer
2026-07-22 22:27:21 +02:00
parent 14e523a1d9
commit f215365af9
4 changed files with 10 additions and 20 deletions
+2 -4
View File
@@ -342,13 +342,11 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts global.Options, args
var brokenSnapshots []string
var wg sync.WaitGroup
wg.Add(1)
go func() {
defer wg.Done()
wg.Go(func() {
bar := printer.NewCounter("snapshots")
defer bar.Done()
chkr.Structure(ctx, bar, errChan)
}()
})
for err := range errChan {
errorsFound = true