Skip to content

Commit 7ac5850

Browse files
committed
errcheck fix
(cherry picked from commit 434f060)
1 parent 2ea9a76 commit 7ac5850

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/service/opa/opa_opa_instance_resource.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,9 @@ func (s *OpaOpaInstanceResourceCrud) Delete() error {
474474
// oci_opa.ActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.Client)
475475
// return delWorkRequestErr
476476

477-
opaInstanceWaitForWorkRequest(workId, "opainstance",
478-
oci_opa.ActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.Client)
477+
if _, err := opaInstanceWaitForWorkRequest(workId, "opainstance", oci_opa.ActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.Client); err != nil {
478+
return err
479+
}
479480
return nil
480481
}
481482

0 commit comments

Comments
 (0)