mirror of
https://github.com/restic/restic.git
synced 2026-10-07 03:07:11 +00:00
repository: deduplicate index progress bar initializaton
This commit is contained in:
1 parent
b459d66288
commit
52eb66929f
21 files changed
+41
-48
No files matched your search
@@ -111,8 +111,7 @@ func runStats(ctx context.Context, opts StatsOptions, gopts GlobalOptions, args
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
bar := ui.NewIndexCounter(printer)
|
||||
if err = repo.LoadIndex(ctx, bar); err != nil {
|
||||
if err = repo.LoadIndex(ctx, printer); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user