Skip to content

Commit

Permalink
Fix bug in arccache.DeleteBlock() method.
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
  • Loading branch information
kevina committed Aug 16, 2016
1 parent c88b4b0 commit bf7c5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/blockstore/arc_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (b *arccache) DeleteBlock(k key.Key) error {
switch err {
case nil, ds.ErrNotFound, ErrNotFound:
b.arc.Add(k, false)
return nil
return err
default:
return err
}
Expand Down

0 comments on commit bf7c5b3

Please sign in to comment.