mirror of
https://github.com/restic/restic.git
synced 2025-10-09 07:33:53 +00:00
gs/s3: remove useless os.IsNotExist check
This commit is contained in:
@@ -170,9 +170,6 @@ func isAccessDenied(err error) bool {
|
||||
// IsNotExist returns true if the error is caused by a not existing file.
|
||||
func (be *Backend) IsNotExist(err error) bool {
|
||||
debug.Log("IsNotExist(%T, %#v)", err, err)
|
||||
if errors.Is(err, os.ErrNotExist) {
|
||||
return true
|
||||
}
|
||||
|
||||
var e minio.ErrorResponse
|
||||
return errors.As(err, &e) && e.Code == "NoSuchKey"
|
||||
|
Reference in New Issue
Block a user