Skip to content

refactor: replace ptr.To with new(expr)#26534

Open
sivchari wants to merge 1 commit intoargoproj:masterfrom
sivchari:refactor/replace-ptr-to-with-new-expr-v2
Open

refactor: replace ptr.To with new(expr)#26534
sivchari wants to merge 1 commit intoargoproj:masterfrom
sivchari:refactor/replace-ptr-to-with-new-expr-v2

Conversation

@sivchari
Copy link
Member

Summary

  • Replace ptr.To() calls with Go 1.26's new(expr) syntax
  • Remove unused k8s.io/utils/ptr imports

Note

Signed-off-by: sivchari shibuuuu5@gmail.com

Use Go 1.26's new(expr) syntax instead of ptr.To helper function.
This change only includes the ptr.To replacement and does not
include removal of other helper functions.

Note: AWS CodeCommit related files are intentionally excluded
as they are being addressed in PR argoproj#26439.

Signed-off-by: sivchari <shibuuuu5@gmail.com>
@sivchari sivchari requested review from a team as code owners February 20, 2026 04:59
@bunnyshell
Copy link

bunnyshell bot commented Feb 20, 2026

❗ Preview Environment deployment failed on Bunnyshell

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to remove the environment


"github.com/argoproj/notifications-engine/pkg/api"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/utils/ptr"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments