repository: deduplicate index progress bar initializaton

This commit is contained in:
Michael Eischer committed 2025-10-03 18:55:46 +02:00
1 parent b459d66288
commit 52eb66929f
21 files changed
+41 -48

No files matched your search

+1 -2
View File
@@ -160,8 +160,7 @@ func runDump(ctx context.Context, opts DumpOptions, gopts GlobalOptions, args []
return errors.Fatalf("failed to find snapshot: %v", err)
}
bar := ui.NewIndexCounter(printer)
err = repo.LoadIndex(ctx, bar)
err = repo.LoadIndex(ctx, printer)
if err != nil {
return err
}