Skip to content

Commit

Permalink
remove response.WasNotFound check
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Jun 24, 2021
1 parent 153ba79 commit c6e23a5
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,6 @@ func resourceDataProtectionBackupInstancePostgreSQLDelete(d *schema.ResourceData

future, err := client.Delete(ctx, id.BackupVaultName, id.ResourceGroup, id.Name)
if err != nil {
if response.WasNotFound(future.Response()) {
return nil
}
return fmt.Errorf("deleting DataProtection BackupInstance (%q): %+v", id, err)
}

Expand Down

0 comments on commit c6e23a5

Please sign in to comment.