Skip to content

Remove redefinitions of loop variables in for-loops.#1240

Open
atombrella wants to merge 1 commit intocontainernetworking:mainfrom
atombrella:feature/modernize_forvar
Open

Remove redefinitions of loop variables in for-loops.#1240
atombrella wants to merge 1 commit intocontainernetworking:mainfrom
atombrella:feature/modernize_forvar

Conversation

@atombrella
Copy link
Copy Markdown
Contributor

@atombrella atombrella commented Mar 11, 2026

This pattern was made obsolete with the GoLang 1.22 semantics for the for-loop.

I have opened an issue to get the ginkgo documentation updated.

@atombrella atombrella force-pushed the feature/modernize_forvar branch from 417acad to 776e606 Compare March 11, 2026 17:26
Copy link
Copy Markdown
Contributor

@e0ne e0ne left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for cleaning this up!

Copy link
Copy Markdown
Member

@squeed squeed left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning this up!

Can you please rebase and remove the merge commits? Then we can land this.

This pattern was made obsolete with the GoLang 1.22 semantics for the
for-loop.

Signed-off-by: Mads Jensen <atombrella@users.noreply.github.com>
@atombrella atombrella force-pushed the feature/modernize_forvar branch from c863bc2 to e848979 Compare April 13, 2026 18:01
@atombrella
Copy link
Copy Markdown
Contributor Author

Thanks for cleaning this up!

Can you please rebase and remove the merge commits? Then we can land this.

@squeed Rebased 😄

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.

3 participants