forked from TrueCloudLab/frostfs-node
cc7a723d77
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
13 lines
315 B
Go
13 lines
315 B
Go
package blobovnicza
|
|
|
|
import (
|
|
"errors"
|
|
|
|
apistatus "github.com/nspcc-dev/neofs-sdk-go/client/status"
|
|
)
|
|
|
|
// IsErrNotFound checks if the error returned by Blobovnicza Get/Delete method
|
|
// corresponds to the missing object.
|
|
func IsErrNotFound(err error) bool {
|
|
return errors.As(err, new(apistatus.ObjectNotFound))
|
|
}
|