mirror of
https://github.com/octoleo/restic.git
synced 2024-09-27 22:19:02 +00:00
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
Block a user