repository: add Checker() method to repository to replace unchecked cast

This commit is contained in:
Michael Eischer committed 2025-10-03 19:34:33 +02:00
1 parent 189b295c30
commit f0955fa931
8 files changed
+20 -13

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ func TestNewLock(_ *testing.T, repo *Repository, exclusive bool) (*restic.Lock,
}
// TestCheckRepo runs the checker on repo.
func TestCheckRepo(t testing.TB, repo restic.Repository) {
func TestCheckRepo(t testing.TB, repo *Repository) {
chkr := NewChecker(repo)
hints, errs := chkr.LoadIndex(context.TODO(), nil)