mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-17 03:06:42 -07:00
remove unused var
This commit is contained in:
parent
1d44f75c27
commit
896ad8315b
1 changed files with 2 additions and 5 deletions
|
|
@ -65,10 +65,7 @@ func Shutdown() {
|
||||||
|
|
||||||
func GetArtistImage(ctx context.Context, opts ArtistImageOpts) (string, error) {
|
func GetArtistImage(ctx context.Context, opts ArtistImageOpts) (string, error) {
|
||||||
l := logger.FromContext(ctx)
|
l := logger.FromContext(ctx)
|
||||||
var imgurl string
|
if imgsrc.subsonicEnabled {
|
||||||
// i know the imgurl check here is stupid but i'm stupider and i want to remind myself to do it
|
|
||||||
// in each check
|
|
||||||
if imgsrc.subsonicEnabled && imgurl == "" {
|
|
||||||
img, err := imgsrc.subsonicC.GetArtistImage(ctx, opts.Aliases[0])
|
img, err := imgsrc.subsonicC.GetArtistImage(ctx, opts.Aliases[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
l.Debug().Err(err).Msg("GetArtistImage: Could not find artist image from Subsonic")
|
l.Debug().Err(err).Msg("GetArtistImage: Could not find artist image from Subsonic")
|
||||||
|
|
@ -78,7 +75,7 @@ func GetArtistImage(ctx context.Context, opts ArtistImageOpts) (string, error) {
|
||||||
} else {
|
} else {
|
||||||
l.Debug().Msg("GetArtistImage: Subsonic image fetching is disabled")
|
l.Debug().Msg("GetArtistImage: Subsonic image fetching is disabled")
|
||||||
}
|
}
|
||||||
if imgsrc.deezerEnabled && imgurl == "" {
|
if imgsrc.deezerEnabled {
|
||||||
img, err := imgsrc.deezerC.GetArtistImages(ctx, opts.Aliases)
|
img, err := imgsrc.deezerC.GetArtistImages(ctx, opts.Aliases)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
l.Debug().Err(err).Msg("GetArtistImage: Could not find artist image from Deezer")
|
l.Debug().Err(err).Msg("GetArtistImage: Could not find artist image from Deezer")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue