Skip to content

Commit 214257c

Browse files
authored
Merge pull request #4640 from kersten/fix/shadowed-plugin-variable
🌱 fix: avoid variable shadowing by renaming loop variable 'plugin'
2 parents 06c0575 + 0c211d5 commit 214257c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/cli/alpha/internal/generate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ func getInitArgs(store store.Store) []string {
265265
}
266266

267267
// Replace outdated plugins and exit after the first replacement
268-
for i, plugin := range plugins {
269-
if newPlugin, exists := outdatedPlugins[plugin]; exists {
268+
for i, plg := range plugins {
269+
if newPlugin, exists := outdatedPlugins[plg]; exists {
270270
log.Warnf("We checked that your PROJECT file is configured with the layout '%s', which is no longer supported.\n"+
271-
"However, we will try our best to re-generate the project using '%s'.", plugin, newPlugin)
271+
"However, we will try our best to re-generate the project using '%s'.", plg, newPlugin)
272272
plugins[i] = newPlugin
273273
break
274274
}

0 commit comments

Comments
 (0)