Commit 4fe3c28
authored
🌱 fix (ci): fix lint issue: shadow: declaration of pluginCfg shadows declaration (#4725)
fix (ci): fix lint issue: shadow: declaration of pluginCfg shadows declaration
Fix plugin config test by resetting struct to avoid value reuse
Avoids test contamination caused by shared PluginConfig variable
by explicitly resetting it before decoding in each test case.
Also resolves shadowing linter errors reported by golangci-lint.1 parent 23b74ea commit 4fe3c28
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
409 | 408 | | |
410 | 409 | | |
411 | 410 | | |
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
415 | | - | |
416 | 414 | | |
417 | 415 | | |
418 | 416 | | |
419 | 417 | | |
420 | 418 | | |
421 | 419 | | |
422 | 420 | | |
423 | | - | |
| 421 | + | |
424 | 422 | | |
425 | 423 | | |
426 | 424 | | |
| |||
0 commit comments