gs: use IsNotExist to check error

This commit is contained in:
Michael Eischer 2023-04-07 23:16:08 +02:00
parent 05abc6d6f5
commit 616926d2c1
1 changed files with 1 additions and 1 deletions

View File

@ -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
}