migrate: Cleanup option to request repository check

This commit is contained in:
Michael Eischer committed 2022-06-04 23:45:00 +02:00
1 parent 0cb6b3d80a
commit 5eba1217e7
4 files changed
+6 -10

No files matched your search

+1 -2
View File
@@ -84,8 +84,7 @@ func applyMigrations(opts MigrateOptions, gopts GlobalOptions, repo restic.Repos
Warnf("check for migration %v failed, continuing anyway\n", m.Name())
}
repoCheckOpts := m.RepoCheckOptions()
if repoCheckOpts != nil {
if m.RepoCheck() {
Printf("checking repository integrity...\n")
checkOptions := CheckOptions{}