Commit c96d386
committed
fix: avoid shadowing of 'err' in grafana/v1alpha scaffolds
Split the error handling for config reading and file closing in
pkg/plugins/optional/grafana/v1alpha/scaffolds/edit.go to avoid shadowing
the outer 'err' variable. This improves error visibility and follows best
practices for clarity in error handling and variable reuse.1 parent 4d257b4 commit c96d386
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | | - | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
0 commit comments