Remove some allocations (#7246)

This commit is contained in:
Claus Vium
2022-01-28 12:21:40 +01:00
committed by GitHub
parent 42724ef411
commit 488ce51032
7 changed files with 52 additions and 39 deletions

View File

@@ -388,7 +388,7 @@ namespace MediaBrowser.Providers.Manager
/// <returns><c>true</c> if changes were made to the item; otherwise <c>false</c>.</returns>
public bool MergeImages(BaseItem item, IReadOnlyList<LocalImageInfo> images)
{
var changed = item.ValidateImages(new DirectoryService(_fileSystem));
var changed = item.ValidateImages();
for (var i = 0; i < _singularImages.Length; i++)
{