Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Jan 30, 2024
1 parent 1a90f7a commit 1320571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,8 @@ func (app *RegenApp) setUpgradeStoreLoaders() {
return
}

for _, u := range upgrades {
for i := range upgrades {
u := upgrades[i] // fix G601: Implicit memory aliasing in for loop. (gosec)
if upgradeInfo.Name == u.UpgradeName {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &u.StoreUpgrades))
}
Expand Down

0 comments on commit 1320571

Please sign in to comment.