mirror of
https://github.com/restic/restic.git
synced 2026-09-29 07:20:30 +00:00
repository: deduplicate index progress bar initializaton
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user