mirror of
https://github.com/octoleo/restic.git
synced 2024-11-02 11:46:36 +00:00
Index: Remove unneeded allocation
This commit is contained in:
parent
36276c41b2
commit
73ad3d418d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user