From 019e962974cdc6e8e6fe2139a59f6898b4aee7a3 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 6 Aug 2018 23:21:08 -0700 Subject: [PATCH] return ErrNotFound from the NullDatastore instead of nil, nil --- basic_ds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic_ds.go b/basic_ds.go index 7a184b3..a2ebef5 100644 --- a/basic_ds.go +++ b/basic_ds.go @@ -89,7 +89,7 @@ func (d *NullDatastore) Put(key Key, value interface{}) (err error) { // Get implements Datastore.Get func (d *NullDatastore) Get(key Key) (value interface{}, err error) { - return nil, nil + return nil, ErrNotFound } // Has implements Datastore.Has