Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
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…
Reference in New Issue
Block a user