fstree: Remove useless Stat() call #1130

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:remove-stat into master 2024-05-14 13:48:14 +00:00

View file

@ -358,10 +358,6 @@ func (t *FSTree) Get(ctx context.Context, prm common.GetPrm) (common.GetRes, err
p := t.treePath(prm.Address) p := t.treePath(prm.Address)
if _, err := os.Stat(p); os.IsNotExist(err) {
return common.GetRes{}, logicerr.Wrap(new(apistatus.ObjectNotFound))
}
var data []byte var data []byte
var err error var err error
{ {