mirror of
https://github.com/restic/restic.git
synced 2026-08-28 16:27:31 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user