mirror of
https://github.com/restic/restic.git
synced 2026-11-28 15:26:48 +00:00
Rename variables
This commit is contained in:
1 parent
7ec674f3e8
commit
d9b5832034
18 files changed
+144
-144
No files matched your search
+2
-2
@@ -50,9 +50,9 @@ func NewSnapshot(paths []string) (*Snapshot, error) {
|
||||
return sn, nil
|
||||
}
|
||||
|
||||
func LoadSnapshot(s *repo.Repository, id backend.ID) (*Snapshot, error) {
|
||||
func LoadSnapshot(repo *repo.Repository, id backend.ID) (*Snapshot, error) {
|
||||
sn := &Snapshot{id: id}
|
||||
err := s.LoadJSONUnpacked(backend.Snapshot, id, sn)
|
||||
err := repo.LoadJSONUnpacked(backend.Snapshot, id, sn)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user