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

This commit is contained in:
Michael Eischer
2025-09-28 14:52:41 +02:00
parent 189b295c30
commit f0955fa931
8 changed files with 20 additions and 13 deletions

View File

@@ -347,7 +347,7 @@ var (
depth = 3
)
func createFilledRepo(t testing.TB, snapshots int, version uint) (restic.Repository, restic.Unpacked[restic.FileType]) {
func createFilledRepo(t testing.TB, snapshots int, version uint) (*repository.Repository, restic.Unpacked[restic.FileType]) {
repo, unpacked, _ := repository.TestRepositoryWithVersion(t, version)
for i := 0; i < snapshots; i++ {