chore: remove redundant variable declarations in for loops - #1316
chore: remove redundant variable declarations in for loops#1316changgesi wants to merge 1 commit into
Conversation
Signed-off-by: changgesi <changgesi@outlook.com>
WalkthroughRemoved redundant loop-variable capture re-declarations ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro Knowledge base: Disabled due to 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The new version of Go has been optimized, and variables do not need to be reassigned.
For more info: https://tip.golang.org/wiki/LoopvarExperiment#does-this-mean-i-dont-have-to-write-x--x-in-my-loops-anymore
Summary by CodeRabbit
Release Notes
This release contains no new features or user-visible updates.
✏️ Tip: You can customize this high-level summary in your review settings.