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 { if err != nil {
return nil, err return nil, err
} }
p := Pack{ID: packID, Entries: j.Entries(), Size: j.Size()}
idx.Packs[packID] = p
} }
return idx, nil return idx, nil