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

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
}