mirror of
https://github.com/restic/restic.git
synced 2025-10-09 23:14:08 +00:00
gs/s3: remove useless os.IsNotExist check
This commit is contained in:
@@ -170,11 +170,6 @@ func (be *Backend) SetListMaxItems(i int) {
|
||||
// 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 os.IsNotExist(err) {
|
||||
return true
|
||||
}
|
||||
|
||||
var gerr *googleapi.Error
|
||||
return errors.As(err, &gerr) && gerr.Code == 404
|
||||
}
|
||||
|
Reference in New Issue
Block a user