Commit af81e63
committed
fix: avoid shadowing of 'resource' and 'err' in machinery scaffold
Renamed the parameter 'resource' to 'res' in the WithResource function to avoid
shadowing the imported package. Also replaced ':=' with '=' when assigning to
'err' to prevent redeclaration and shadowing of the existing error variable.
These changes improve code clarity and follow Go best practices.1 parent e3658a6 commit af81e63
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
| 495 | + | |
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| |||
0 commit comments