forked from TrueCloudLab/frostfs-node
[#1745] writecache: Remove IsErrNotFound
We specify the error in the doc-comment, and it is the same for all our components. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
9e41e85295
commit
c04126f35e
4 changed files with 3 additions and 18 deletions
|
@ -1,13 +0,0 @@
|
|||
package writecache
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
apistatus "github.com/nspcc-dev/neofs-sdk-go/client/status"
|
||||
)
|
||||
|
||||
// IsErrNotFound checks if error returned by Cache Get/Head/Delete method
|
||||
// corresponds to missing object.
|
||||
func IsErrNotFound(err error) bool {
|
||||
return errors.As(err, new(apistatus.ObjectNotFound))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue