Skip to content

Commit

Permalink
r/aws_memorydb_multi_region_cluster: appease the semgrep overlords
Browse files Browse the repository at this point in the history
  • Loading branch information
jar-b committed Dec 17, 2024
1 parent 67d34f5 commit 6b3bfbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/service/memorydb/multi_region_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,10 @@ func (r *multiRegionClusterResource) Delete(ctx context.Context, req resource.De
// Before deleting the multi-region cluster, ensure it is ready for deletion.
// Removing an `aws_memorydb_cluster` from a multi-region cluster may temporarily block deletion.
output, err := findMultiRegionClusterByName(ctx, conn, state.ID.ValueString())
if tfresource.NotFound(err) {
return
}
if err != nil {
if tfresource.NotFound(err) {
return
}
resp.Diagnostics.AddError(
create.ProblemStandardMessage(names.MemoryDB, create.ErrActionDeleting, ResNameMultiRegionCluster, state.ID.String(), err),
err.Error(),
Expand Down

0 comments on commit 6b3bfbb

Please sign in to comment.