repository: deduplicate index progress bar initializaton

This commit is contained in:
Michael Eischer
2025-10-03 18:55:46 +02:00
parent b459d66288
commit 52eb66929f
21 changed files with 41 additions and 48 deletions
+1 -2
View File
@@ -249,8 +249,7 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args
}
printer.P("load indexes\n")
bar := ui.NewIndexCounter(printer)
hints, errs := chkr.LoadIndex(ctx, bar)
hints, errs := chkr.LoadIndex(ctx, printer)
if ctx.Err() != nil {
return summary, ctx.Err()
}