-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove no needed new pointer creation #2739
Conversation
Signed-off-by: bitliu <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2739 +/- ##
==========================================
- Coverage 63.48% 63.45% -0.04%
==========================================
Files 125 125
Lines 20547 20538 -9
==========================================
- Hits 13045 13033 -12
- Misses 6666 6667 +1
- Partials 836 838 +2 ☔ View full report in Codecov by Sentry. |
I recall there's an improment in upstream go, but I cannot recall which version and commit, can you link it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@zirain I did not get, and it should be none-related to this PR. Can we get this in ? |
I guess it's related to the variable scope in loop: https://go.dev/blog/loopvar-preview
It's fixed in Go 1.22, but why lint removes this check in 1.21 ? |
yeah, that's what I mean. should we hold this until we move to go1.22? |
Sure, let us hold for bumping go version. |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions! |
This loopvar feature of go 1.22 requires enable env |
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
remove no needed new pointer creation