repository: removed redundant prepareCache method from Repository

* remove the prepareCache method from the Repository
* changed the signature of the SetIndex function to no longer return an error
This commit is contained in:
Srigovind Nayak authored and Michael Eischer committed 2024-08-30 12:43:13 +02:00
1 parent 0cf1737289
commit 1e68fbca90
4 files changed
+6 -45

No files matched your search

+1 -5
View File
@@ -146,11 +146,7 @@ func (c *Checker) LoadIndex(ctx context.Context, p *progress.Counter) (hints []e
return hints, append(errs, err)
}
err = c.repo.SetIndex(c.masterIndex)
if err != nil {
debug.Log("SetIndex returned error: %v", err)
errs = append(errs, err)
}
c.repo.SetIndex(c.masterIndex)
// compute pack size using index entries
c.packs, err = pack.Size(ctx, c.repo, false)