Skip to content

refactor: remove redundant variable declarations in for loops#10100

Merged
macneale4 merged 1 commit intodolthub:mainfrom
efcking:main
Jan 7, 2026
Merged

refactor: remove redundant variable declarations in for loops#10100
macneale4 merged 1 commit intodolthub:mainfrom
efcking:main

Conversation

@efcking
Copy link
Copy Markdown
Contributor

@efcking efcking commented Nov 19, 2025

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

Signed-off-by: efcking <efcking@outlook.com>
@efcking
Copy link
Copy Markdown
Contributor Author

efcking commented Nov 24, 2025

@jycor @zachmu Hi, Could you please review this PR at your convenience? Thank you very much.

@macneale4
Copy link
Copy Markdown
Contributor

Thanks for the contribution @efcking ! I'm going to run in through CI and submit when it passes. Thanks again!

@macneale4 macneale4 merged commit aac73a5 into dolthub:main Jan 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants