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:
Tobias Gesellchen
2026-05-29 00:28:04 +02:00
co-authored by Claude Sonnet 4.6
parent e54738d367
commit 6eb3829888
2 changed files with 18 additions and 13 deletions
+1
View File
@@ -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 == "" &&