mirror of
https://github.com/restic/restic.git
synced 2025-08-23 14:57:37 +00:00
gs: use IsNotExist to check error
This commit is contained in:
@@ -286,7 +286,7 @@ func (be *Backend) Remove(ctx context.Context, h restic.Handle) error {
|
||||
|
||||
err := be.bucket.Object(objName).Delete(ctx)
|
||||
|
||||
if err == storage.ErrObjectNotExist {
|
||||
if be.IsNotExist(err) {
|
||||
err = nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user