mirror of https://github.com/restic/restic.git
gs: use IsNotExist to check error
This commit is contained in:
parent
05abc6d6f5
commit
616926d2c1
|
@ -286,7 +286,7 @@ func (be *Backend) Remove(ctx context.Context, h restic.Handle) error {
|
||||||
|
|
||||||
err := be.bucket.Object(objName).Delete(ctx)
|
err := be.bucket.Object(objName).Delete(ctx)
|
||||||
|
|
||||||
if err == storage.ErrObjectNotExist {
|
if be.IsNotExist(err) {
|
||||||
err = nil
|
err = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue