Commit 42d5eda
committed
refactor(processor): eliminate redundant interval accumulator reset call
- Remove post-declaration reset() call from AnalyzeAudio; struct zero
values suffice for all fields except truePeakMax and samplePeakMax
- Collapse reset() body from 28 lines to 3 lines using struct literal
initialization
This reduces unnecessary initialization overhead and improves code
clarity by relying on Go's zero-value semantics.
Signed-off-by: Martin Wimpress <code@wimpress.io>1 parent c706579 commit 42d5eda
2 files changed
Lines changed: 4 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | 329 | | |
331 | 330 | | |
332 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
331 | 308 | | |
332 | 309 | | |
333 | 310 | | |
| |||
0 commit comments