diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-29 23:06:10 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-29 23:06:10 +0200 |
commit | b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef (patch) | |
tree | 7f93f11b91b84e605a26f573d40791a4f6cb49d0 /storage/memory | |
parent | e4246138cb9ffb819c052ba17a9fbdf915427291 (diff) | |
download | go-git-b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef.tar.gz |
core: Storage.Get, switch order of args
Diffstat (limited to 'storage/memory')
-rw-r--r-- | storage/memory/storage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/memory/storage.go b/storage/memory/storage.go index 8033541..fa34c4d 100644 --- a/storage/memory/storage.go +++ b/storage/memory/storage.go @@ -130,7 +130,7 @@ func (o *ObjectStorage) Set(obj core.Object) (core.Hash, error) { } // Get returns a object with the given hash -func (o *ObjectStorage) Get(h core.Hash, t core.ObjectType) (core.Object, error) { +func (o *ObjectStorage) Get(t core.ObjectType, h core.Hash) (core.Object, error) { obj, ok := o.Objects[h] if !ok || (core.AnyObject != t && obj.Type() != t) { return nil, core.ErrObjectNotFound |