From 98a22e72a808aa0d5dd62339817404fd9e1c4db6 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 6 Sep 2016 19:59:44 +0200 Subject: format: packfile new interface (wip) --- storage/filesystem/object.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'storage/filesystem/object.go') diff --git a/storage/filesystem/object.go b/storage/filesystem/object.go index c66e1ff..aef30ec 100644 --- a/storage/filesystem/object.go +++ b/storage/filesystem/object.go @@ -1,7 +1,6 @@ package filesystem import ( - "bytes" "fmt" "io" "os" @@ -34,8 +33,7 @@ func (s *ObjectStorage) NewObject() core.Object { // Writer method not supported on Memory storage func (o *ObjectStorage) Writer() (io.WriteCloser, error) { - file := bytes.NewBuffer(nil) - return newPackWrite(o, file), nil + return o.dir.NewObjectPack() } // Set adds a new object to the storage. As this functionality is not -- cgit