Remove redundant interfaces

This commit is contained in:
Deluan
2020-10-20 15:46:18 -04:00
committed by Deluan Quintão
parent a257891b46
commit a289a1945f
3 changed files with 7 additions and 16 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ var Set = wire.NewSet(
transcoder.New,
)
func LastFMNewClient() LastFMClient {
func LastFMNewClient() *lastfm.Client {
if conf.Server.LastFM.ApiKey == "" {
return nil
}
@@ -30,7 +30,7 @@ func LastFMNewClient() LastFMClient {
return lastfm.NewClient(conf.Server.LastFM.ApiKey, conf.Server.LastFM.Language, http.DefaultClient)
}
func SpotifyNewClient() SpotifyClient {
func SpotifyNewClient() *spotify.Client {
if conf.Server.Spotify.ID == "" || conf.Server.Spotify.Secret == "" {
return nil
}