Apply suggestions from code review

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/4202/head
Claus Vium 4 years ago committed by cvium
parent 9adbf4e9d8
commit c0f4c90d57

@ -79,7 +79,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.People
return remoteImages.OrderByLanguageDescending(language);
}
return new List<RemoteImageInfo>();
return Enumerable.Empty<RemoteImageInfo>();
}
public Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)

@ -60,7 +60,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.People
if (searchInfo.IsAutomated)
{
// Don't hammer moviedb searching by name
return new List<RemoteSearchResult>();
return Enumerable.Empty<RemoteSearchResult>();
}
var personSearchResult = await _tmdbClientManager.SearchPersonAsync(searchInfo.Name, cancellationToken).ConfigureAwait(false);

@ -103,6 +103,5 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
{
return item is Controller.Entities.TV.Episode;
}
}
}

@ -64,7 +64,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
if (series?.Images == null)
{
return Array.Empty<RemoteImageInfo>();
return Enumerable.Empty<RemoteImageInfo>();
}
var remoteImages = new List<RemoteImageInfo>();

Loading…
Cancel
Save