[#502] Fix list empty bucket

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
support/v0.25
Denis Kirillov 2022-06-06 17:07:38 +03:00 committed by Alex Vanin
parent 4f3d206422
commit 41c815441b
1 changed files with 3 additions and 0 deletions

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)
if err != nil {
if errors.Is(err, layer.ErrNodeNotFound) {
return nil, nil
}
return nil, err
}