From 19da30a8ff233285a79df9f1da8b0d88d99eb626 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Mon, 5 Sep 2016 19:55:01 +0200 Subject: core: ObjectStorage.Writer --- storage/memory/storage.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'storage/memory') diff --git a/storage/memory/storage.go b/storage/memory/storage.go index 01d5fa5..216336c 100644 --- a/storage/memory/storage.go +++ b/storage/memory/storage.go @@ -3,6 +3,7 @@ package memory import ( "fmt" + "io" "gopkg.in/src-d/go-git.v4/config" "gopkg.in/src-d/go-git.v4/core" @@ -109,6 +110,11 @@ func (o *ObjectStorage) NewObject() core.Object { return &core.MemoryObject{} } +// Writer method not supported on Memory storage +func (o *ObjectStorage) Writer() (io.WriteCloser, error) { + return nil, core.ErrNotImplemented +} + // Set stores an object, the object should be properly filled before set it. func (o *ObjectStorage) Set(obj core.Object) (core.Hash, error) { h := obj.Hash() -- cgit