migrate: Cleanup option to request repository check

This commit is contained in:
Michael Eischer
2022-06-04 23:45:00 +02:00
parent 0cb6b3d80a
commit 5eba1217e7
4 changed files with 6 additions and 10 deletions
+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{}