diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 99ec5c5..905e5b9 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -55,15 +55,13 @@ func IcecastGetStatus(icecastURL string) (*IcecastStatus, error) { return nil, err } - iceStat := &IcecastStatus{ + return &IcecastStatus{ ServerStartISO8601: iceStatDTO.Icestats.ServerStartISO8601, ServerStartDate: iceStatDTO.Icestats.ServerStartDate, SongName: iceStatDTO.Song(), ListenerPeak: iceStatDTO.Icestats.Source.ListenerPeak, Listeners: iceStatDTO.Icestats.Source.Listeners, - } - - return iceStat, nil + }, nil } func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) ([]Song, error) {