fixup for lint

This commit is contained in:
Aaron H. Alpar
2022-11-22 11:45:18 -08:00
parent 1692417831
commit 9cdae6e304
2 changed files with 3 additions and 7 deletions

View File

@@ -124,11 +124,7 @@ func (sm *SharedManager) LoadIndexBlob(ctx context.Context, ibid blob.ID, d gath
if err != nil {
return nil, err
}
q, err := ParseIndexBlob(ibid, d.Bytes(), sm.format)
if err != nil {
return nil, err
}
return q, nil
return ParseIndexBlob(ibid, d.Bytes(), sm.format)
}
// IndexReaderV0 return an index reader for reading V0 indexes

View File

@@ -15,7 +15,7 @@
// during upgrade.
BackupBlobIDPrefix = "kopia.repository.backup."
// LegacyIndexPoisonBlobID used to pollute V0 indexes after upgrade to prevent legacy clients from corrupting V1 indexes
// LegacyIndexPoisonBlobID used to pollute V0 indexes after upgrade to prevent legacy clients from corrupting V1 indexes.
LegacyIndexPoisonBlobID = "n00000000000000000000000000000000-repository_unreadable_by_this_kopia_version_upgrade_required"
)
@@ -58,7 +58,7 @@ func (m *Manager) SetUpgradeLockIntent(ctx context.Context, l UpgradeLockIntent)
return nil, errors.Wrap(err, "failed to backup the repo format blob")
}
// set a new lock or revoke an existing lock
// set a new lock or revoke an existing lock.
m.repoConfig.UpgradeLock = &l
// mark the upgrade to the new format version, this will ensure that older
// clients won't be able to parse the new version