fstree: Remove useless Stat() call #1130
1 changed files with 0 additions and 4 deletions
|
@ -358,10 +358,6 @@ func (t *FSTree) Get(ctx context.Context, prm common.GetPrm) (common.GetRes, err
|
|||
|
||||
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 err error
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue