happy linting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Marvin Steadfast 2020-12-09 08:38:00 +01:00
parent 82e99c032b
commit 385b70bb2b

View File

@ -15,12 +15,12 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )
// Logic Jellyfin URL // Logic Jellyfin URL.
type Logic struct { type Logic struct {
BaseURL string BaseURL string
} }
// PublicInfo Chromecast configuration Payload // PublicInfo Chromecast configuration Payload.
type PublicInfo struct { type PublicInfo struct {
ID string ID string
LocalAddress string LocalAddress string
@ -69,8 +69,10 @@ func (l Logic) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return return
} }
url := os.Getenv("JELLYFIN_URL") url := os.Getenv("JELLYFIN_URL")
jd.LocalAddress = url jd.LocalAddress = url
nd, err := json.Marshal(jd) nd, err := json.Marshal(jd)
if err != nil { if err != nil {
logger.Error().Msg(err.Error()) logger.Error().Msg(err.Error())