Commit c2f2542
committed
fix: avoid shadowing of 'err' in CLI options, YAML store, and external plugin helpers
Replaced short variable declarations with assignments in pkg/cli/options.go,
pkg/config/store/yaml/store.go, and pkg/plugins/external/helpers.go to avoid shadowing
the outer 'err' variable. These changes improve error traceability and follow Go best
practices for scoped variable reuse and readability.1 parent e3658a6 commit c2f2542
File tree
3 files changed
+3
-3
lines changed- pkg
- cli
- config/store/yaml
- plugins/external
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
0 commit comments