Skip to content

Commit

Permalink
Fix bug in LevelDB datastore's Delete() method.
Browse files Browse the repository at this point in the history
LevelDB Delete() method will not return ErrNotFound so check that the key
exists first by calling Has() and return ds.ErrNotFound if Has() returns
false.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
  • Loading branch information
kevina committed May 6, 2016
1 parent d7be69c commit 9df24d3
Showing 1 changed file with 9 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9df24d3

Please sign in to comment.