[#502] Fix list empty bucket

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-06-06 17:07:38 +03:00 committed by Alex Vanin
parent 4f3d206422
commit 41c815441b

View file

@ -614,6 +614,9 @@ func (c *TreeClient) getSubTreeByPrefix(ctx context.Context, cnrID *cid.ID, tree
subTree, err := c.getSubTree(ctx, cnrID, treeID, rootID, 1) subTree, err := c.getSubTree(ctx, cnrID, treeID, rootID, 1)
if err != nil { if err != nil {
if errors.Is(err, layer.ErrNodeNotFound) {
return nil, nil
}
return nil, err return nil, err
} }