Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
1riatsila1 committed Nov 14, 2024
1 parent feadb7f commit 1ac7e62
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion internal/provider/resources/agent_group_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ func (r *agentGroupAssignmentResource) Delete(
errorPresent, errorDetail := util.RaiseForStatus(response, err)

if errorPresent {
// deleting a group will cascade delete assignments, so this resource will no longer exist
if response.StatusCode == http.StatusNotFound {
resp.State.RemoveResource(ctx)
return
Expand Down
1 change: 0 additions & 1 deletion internal/provider/resources/network_group_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func (r *networkGroupAssignmentResource) Delete(
errorPresent, errorDetail := util.RaiseForStatus(response, err)

if errorPresent {
// deleting a group will cascade delete assignments, so this resource will no longer exist
if response.StatusCode == http.StatusNotFound {
resp.State.RemoveResource(ctx)
return
Expand Down
1 change: 0 additions & 1 deletion internal/provider/resources/sensor_group_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ func (r *sensorGroupAssignmentResource) Delete(
errorPresent, errorDetail := util.RaiseForStatus(response, err)

if errorPresent {
// deleting a group will cascade delete assignments, so this resource will no longer exist
if response.StatusCode == http.StatusNotFound {
resp.State.RemoveResource(ctx)
return
Expand Down
1 change: 0 additions & 1 deletion internal/provider/resources/service_group_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ func (r *serviceTestGroupAssignmentResource) Delete(
errorPresent, errorDetail := util.RaiseForStatus(response, err)

if errorPresent {
// deleting a group will cascade delete assignments, so this resource will no longer exist
if response.StatusCode == http.StatusNotFound {
resp.State.RemoveResource(ctx)
return
Expand Down

0 comments on commit 1ac7e62

Please sign in to comment.