Skip to content

Commit 427af3a

Browse files
authored
compare ptr using == (#191)
Issue #, if available: Addresses #182 (comment) Testing: mode e2e test using sagemaker controller By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 89a44eb commit 427af3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/pkg/resource/manager.go.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func (rm *resourceManager) onError(
263263
r *resource,
264264
err error,
265265
) (acktypes.AWSResource, error) {
266-
if ackcompare.IsNil(r) {
266+
if r == nil {
267267
return nil, err
268268
}
269269
r1, updated := rm.updateConditions(r, false, err)
@@ -286,7 +286,7 @@ func (rm *resourceManager) onError(
286286
func (rm *resourceManager) onSuccess(
287287
r *resource,
288288
) (acktypes.AWSResource, error) {
289-
if ackcompare.IsNil(r) {
289+
if r == nil {
290290
return nil, nil
291291
}
292292
r1, updated := rm.updateConditions(r, true, nil)

0 commit comments

Comments
 (0)