From ccd8760fbce2554dadbb82ce9e2d4036180e87f5 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 1 Dec 2020 11:35:44 +0300 Subject: [PATCH] [#222] Update Exists method in shard Signed-off-by: Alex Vanin --- pkg/local_object_storage/shard/exists.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/local_object_storage/shard/exists.go b/pkg/local_object_storage/shard/exists.go index 9a25763a6..349d3470c 100644 --- a/pkg/local_object_storage/shard/exists.go +++ b/pkg/local_object_storage/shard/exists.go @@ -2,7 +2,6 @@ package shard import ( "github.com/nspcc-dev/neofs-api-go/pkg/object" - "github.com/pkg/errors" ) // ExistsPrm groups the parameters of Exists operation. @@ -35,13 +34,10 @@ func (p *ExistsRes) Exists() bool { // unambiguously determine the presence of an object. func (s *Shard) Exists(prm *ExistsPrm) (*ExistsRes, error) { exists, err := s.objectExists(prm.addr) - if err != nil { - return nil, errors.Wrap(err, "could not check object presence in metabase") - } return &ExistsRes{ ex: exists, - }, nil + }, err } func (s *Shard) objectExists(addr *object.Address) (bool, error) {