From 0cd6ed46032f01500e5ea3171ffca7e1783df2ba Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sun, 1 Feb 2026 21:44:19 +0100 Subject: [PATCH] style: fix error string capitalization to follow Go guidelines (ST1005) - Lowercase error messages in GetPandoraStations, SearchPandoraStations, and SearchSpotifyContent - Follows Go convention that error strings should not be capitalized unless they begin with proper nouns --- pkg/client/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/client/client.go b/pkg/client/client.go index b48d9a7..ee82e11 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -1554,7 +1554,7 @@ func (c *Client) RemoveStation(contentItem *models.ContentItem) error { // GetPandoraStations gets all Pandora radio stations for an account func (c *Client) GetPandoraStations(sourceAccount string) (*models.NavigateResponse, error) { if sourceAccount == "" { - return nil, fmt.Errorf("Pandora source account cannot be empty") + return nil, fmt.Errorf("pandora source account cannot be empty") } return c.NavigateWithMenu("PANDORA", sourceAccount, "radioStations", "dateCreated", 1, 100) @@ -1597,7 +1597,7 @@ func (c *Client) SearchStation(source, sourceAccount, searchTerm string) (*model // SearchPandoraStations searches for Pandora stations by artist/song name func (c *Client) SearchPandoraStations(sourceAccount, searchTerm string) (*models.SearchStationResponse, error) { if sourceAccount == "" { - return nil, fmt.Errorf("Pandora source account cannot be empty") + return nil, fmt.Errorf("pandora source account cannot be empty") } return c.SearchStation("PANDORA", sourceAccount, searchTerm) @@ -1611,7 +1611,7 @@ func (c *Client) SearchTuneInStations(searchTerm string) (*models.SearchStationR // SearchSpotifyContent searches for Spotify content (playlists, tracks, etc.) func (c *Client) SearchSpotifyContent(sourceAccount, searchTerm string) (*models.SearchStationResponse, error) { if sourceAccount == "" { - return nil, fmt.Errorf("Spotify source account cannot be empty") + return nil, fmt.Errorf("spotify source account cannot be empty") } return c.SearchStation("SPOTIFY", sourceAccount, searchTerm)