repository: Rename LoadAndDecrypt to LoadUnpacked

The method is the complement for SaveUnpacked and not for
SaveAndEncrypt. The latter assembles blobs into pack files.
This commit is contained in:
Michael Eischer
2022-03-28 22:09:49 +02:00
parent 2e1613d4c6
commit 6877e7edbb
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func runCat(gopts GlobalOptions, args []string) error {
Println(string(buf))
return nil
case "index":
buf, err := repo.LoadAndDecrypt(gopts.ctx, nil, restic.IndexFile, id)
buf, err := repo.LoadUnpacked(gopts.ctx, nil, restic.IndexFile, id)
if err != nil {
return err
}