2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-27 12:53:30 +00:00

Index: Remove unneeded allocation

This commit is contained in:
Alexander Neumann 2017-01-17 12:46:41 +01:00
parent 36276c41b2
commit 73ad3d418d

View File

@ -62,9 +62,6 @@ func New(repo restic.Repository, p *restic.Progress) (*Index, error) {
if err != nil {
return nil, err
}
p := Pack{ID: packID, Entries: j.Entries(), Size: j.Size()}
idx.Packs[packID] = p
}
return idx, nil