chore: apply linter auto-fixes (wsl_v5, nlreturn, tagalign) (#984)

golangci-lint auto-fixes across multiple packages:
- wsl_v5: blank lines between logical blocks
- nlreturn: newlines before return statements
- tagalign: struct field tag alignment

No logic changes.

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cody Lee
2026-03-23 21:10:52 -05:00
committed by GitHub
parent 18c6e66a8e
commit 2f1e28c7d3
15 changed files with 132 additions and 62 deletions

View File

@@ -42,9 +42,9 @@ func (u *OtelOutput) exportUSW(ctx context.Context, meter metric.Meter, r *Repor
u.recordGauge(ctx, meter, r, "unifi_device_usw_load_avg_1",
"USW load average 1-minute", s.SysStats.Loadavg1.Val, attrs)
u.recordGauge(ctx, meter, r, "unifi_device_usw_rx_bytes",
"USW total receive bytes", s.Stat.Sw.RxBytes.Val, attrs)
"USW total receive bytes", s.Stat.RxBytes.Val, attrs)
u.recordGauge(ctx, meter, r, "unifi_device_usw_tx_bytes",
"USW total transmit bytes", s.Stat.Sw.TxBytes.Val, attrs)
"USW total transmit bytes", s.Stat.TxBytes.Val, attrs)
if !u.DeadPorts {
for _, p := range s.PortTable {