mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
fix: resolve unparam issues by using constants for default ports
- Added defaultSoundTouchPort constant (8090) to client.go - Updated parseBassHostPort and parseHostPort test utility functions to use constant - Removed unnecessary defaultPort parameters that always received 8090 - Fixed function signatures and all call sites in integration tests Progress: Reduced unparam issues from 3 to 1 (only client.go post method remains) Total issues: 23 → 21 (9% improvement) Remaining: - gocyclo: 14 (complexity) - revive: 1 (DiscoveryService naming) - staticcheck: 5 - unparam: 1 (client.post result parameter - kept for future extensibility)
This commit is contained in:
@@ -12,6 +12,9 @@ import (
|
||||
"github.com/user_account/bose-soundtouch/pkg/models"
|
||||
)
|
||||
|
||||
// defaultSoundTouchPort is the standard port for SoundTouch devices
|
||||
const defaultSoundTouchPort = 8090
|
||||
|
||||
// Client represents a SoundTouch API client
|
||||
type Client struct {
|
||||
baseURL string
|
||||
|
||||
Reference in New Issue
Block a user