From a964e32d92c53a47ce7c46d589a18c62133b8c50 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Wed, 17 Feb 2016 00:24:31 +0100 Subject: storages: memory object --- formats/packfile/reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'formats/packfile/reader.go') diff --git a/formats/packfile/reader.go b/formats/packfile/reader.go index 91aef21..e981d72 100644 --- a/formats/packfile/reader.go +++ b/formats/packfile/reader.go @@ -125,7 +125,7 @@ func (r *Reader) readObjects(count uint32) error { // of which 12-20 % is _not_ zlib inflation (ie. is our code). for i := 0; i < int(count); i++ { start := r.r.position - obj, err := r.newRAWObject() + obj, err := r.newObject() if err != nil && err != io.EOF { return err } @@ -143,7 +143,7 @@ func (r *Reader) readObjects(count uint32) error { return nil } -func (r *Reader) newRAWObject() (core.Object, error) { +func (r *Reader) newObject() (core.Object, error) { raw, err := r.s.New() if err != nil { return nil, err -- cgit