mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
chore(lint): fix golangci-lint issues in navigation-station-demo
- Add package comment (revive: package-comments) - Use index-based range loop for stations slice to avoid 160-byte copy per iteration (gocritic: rangeValCopy) - Rename unused client parameters to _ in three stub functions (revive: unused-parameter) - Remove custom min() helper; Go 1.21+ provides a built-in min (revive: redefines-builtin-id) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
e54738d367
commit
6eb3829888
@@ -151,6 +151,7 @@ func resolveLocationAndMetadata(params *presetParams) error {
|
||||
!isOrionLocation(params.location) &&
|
||||
(strings.HasPrefix(params.location, "http://") || strings.HasPrefix(params.location, "https://")) {
|
||||
params.location = buildOrionLocation(params.serviceURL, params.name, params.artwork, resolvedLocation)
|
||||
|
||||
fmt.Printf(" Wrapped stream URL in Orion location for LOCAL_INTERNET_RADIO\n")
|
||||
} else if params.source == "LOCAL_INTERNET_RADIO" &&
|
||||
params.serviceURL == "" &&
|
||||
|
||||
Reference in New Issue
Block a user