Remove Deleter interface

This commit is contained in:
Alexander Neumann
2017-10-14 15:56:38 +02:00
parent b8af7f63a0
commit e56370eb5b
8 changed files with 11 additions and 36 deletions

View File

@@ -378,5 +378,9 @@ func (b *restBackend) Delete(ctx context.Context) error {
}
}
return b.Remove(ctx, restic.Handle{Type: restic.ConfigFile})
err := b.Remove(ctx, restic.Handle{Type: restic.ConfigFile})
if err != nil && b.IsNotExist(err) {
return nil
}
return err
}