fix: replace ptr.To("") by new(string)#313
Conversation
Signed-off-by: rxinui <rainui.ly@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
I am not sure why there are two E2E tests in pending still. |
|
@HeavyWombat Hi There was a discussion weeks ago about this PR. I've explained that changing Instead, we were thinking of finding a way to replace the "Sanitize" process and avoid pointer of string. See https://docs.google.com/document/d/10tDPl_t2-7NcxmI1Iy50dIGPIRIdIUh8v6qp1iH3wLc/edit?tab=t.0#heading=h.cxmoz937fi39
|
Thanks for hint. I wasn't aware. Should we close this PR then for the time being? |
|
I haven't find time to do it. Will spend some time next week. :) |
|
/hold I don't think this solves the root issue at hand (why do we need pointers in the first place?). Instead I fear this change obfuscates the root issue when reading the code. A new golang developer may not be aware that |
Changes
I tried to have a conversation with @HeavyWombat regarding possible changes or implementations. Here's a proactive PR.
I'm not certain if this solves the issue reported, let's discuss about it.
Fixes #310
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes