ibc-go
ibc-go copied to clipboard
chore(all): remove copy of the 'for' variable
Description
linter:
modules/core/genesis_test.go:284:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^
modules/core/genesis_test.go:421:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^
modules/core/genesis_test.go:449:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
modules/core/04-channel/simulation/decoder_test.go:78:3: The copy of the 'for' variable "i" can be deleted (Go 1.22+) (copyloopvar)
i, tt := i, tt
closes: #XXXX
Before we can merge this PR, please make sure that all the following items have been checked off. If any of the checklist items are not applicable, please leave them but write a little note why.
- [ ] Targeted PR against the correct branch (see CONTRIBUTING.md).
- [ ] Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
- [ ] Code follows the module structure standards and Go style guide.
- [ ] Wrote unit and integration tests.
- [ ] Updated relevant documentation (
docs/). - [ ] Added relevant
godoccomments. - [ ] Provide a conventional commit message to follow the repository standards.
- [ ] Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
- [ ] Re-reviewed
Files changedin the GitHub PR explorer. - [ ] Review
SonarCloud Reportin the comment section below once CI passes.
thank you!
this helps me sleep better
This is a good one, but I believe we have a lot of these around. Would you mind taking a closer look at the rest of the repo and fix this in a more cohesive way (so we stay consistent)
I would be really happy too! I started to do this last night actually.
Just so you know, it will be necessary to upgrade go, because that will get us the latest set of linters. I will toss in a PR later today.
This is a good one, but I believe we have a lot of these around. Would you mind taking a closer look at the rest of the repo and fix this in a more cohesive way (so we stay consistent)
@gjermundgaraba checked whole codespace