From a0280d2446fc0c4c8ead440aa641d11018336423 Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Wed, 17 Jan 2024 15:01:42 -0300 Subject: [PATCH] tree: fix Delete(...) api Signed-off-by: Ignacio Hagopian --- tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree.go b/tree.go index 0e314e58..b26d6989 100644 --- a/tree.go +++ b/tree.go @@ -618,7 +618,7 @@ func (n *InternalNode) Delete(key []byte, resolver NodeResolverFn) (bool, error) // as well. for _, c := range n.children { if _, ok := c.(Empty); !ok { - break + return false, nil } }