Commit 5b1664f
committed
fix: Resolve staticcheck linter warnings
Fixed three linter issues identified by staticcheck:
1. Replaced deprecated strings.Title with custom Title function
- strings.Title was deprecated in Go 1.18
- Used existing Title() helper function instead
2. Removed unused otherDecorators variable in WGSL generator
- The append result was never used
- Added comment noting other decorators aren't currently supported
3. Removed unnecessary fmt.Sprintf for static string
- Changed fmt.Sprintf("// ...") to direct string literal
- Improves code clarity and performance
All tests passing, linter clean.1 parent cd07c3c commit 5b1664f
2 files changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
180 | | - | |
181 | | - | |
182 | 179 | | |
| 180 | + | |
183 | 181 | | |
184 | 182 | | |
185 | 183 | | |
| |||
412 | 410 | | |
413 | 411 | | |
414 | 412 | | |
415 | | - | |
| 413 | + | |
416 | 414 | | |
417 | 415 | | |
418 | 416 | | |
| |||
0 commit comments