forked from TrueCloudLab/restic
gs: use IsNotExist to check error
This commit is contained in:
parent
05abc6d6f5
commit
616926d2c1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue