mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
- Fix bodyclose issues by properly closing WebSocket response body - Fix errcheck issues by checking errors on resp.Body.Close(), conn.Close(), etc. - Fix errorlint issue by using errors.As() instead of type assertion - Fix nilerr issue by adding proper logging for UPnP discovery failures - Fix gocritic issues: - Convert if-else chains to switch statements - Fix parameter type combining (paramTypeCombine) - Fix range value copying (rangeValCopy) - Fix exitAfterDefer by calling cancel() before log.Fatalf() - Add package comments to fix revive package-comments issues - Rename ClientConfig to Config to avoid type name stuttering - Add missing exported constant comments - Fix unused parameter issues by renaming to _ - Fix empty block issues - Add t.Helper() to test helper functions - Update User-Agent and fix GetNetworkSummary behavior to match test expectations Reduces linting issues from 151 to 108 (28% improvement). All tests now pass.