Unverified Commit e80704d5 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #92 from ipfs/fix/null-not-found

return ErrNotFound from the NullDatastore instead of nil, nil
parents 2fa1cdde 019e9629
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment