diff options
Diffstat (limited to 'storage/seekable/internal/index/index.go')
-rw-r--r-- | storage/seekable/internal/index/index.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/seekable/internal/index/index.go b/storage/seekable/internal/index/index.go index 4282f3e..737aca6 100644 --- a/storage/seekable/internal/index/index.go +++ b/storage/seekable/internal/index/index.go @@ -51,8 +51,8 @@ func NewFromPackfile(rs io.ReadSeeker) (Index, error) { return nil, err } - obj, err := p.ReadObject() - if err != nil { + obj := &core.MemoryObject{} + if err := p.FillObject(obj); err != nil { return nil, err } |