Apply suggestions from code review

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
Claus Vium 2020-09-27 20:13:38 +02:00 committed by cvium
parent 9adbf4e9d8
commit c0f4c90d57
4 changed files with 3 additions and 4 deletions

View File

@ -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)

View File

@ -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);

View File

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

View File

@ -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>();