mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
More small optimizations
This commit is contained in:
@@ -722,8 +722,7 @@ namespace Emby.Server.Implementations.Dto
|
||||
|
||||
// Prevent implicitly captured closure
|
||||
var currentItem = item;
|
||||
foreach (var image in currentItem.ImageInfos.Where(i => !currentItem.AllowsMultipleImages(i.Type))
|
||||
.ToList())
|
||||
foreach (var image in currentItem.ImageInfos.Where(i => !currentItem.AllowsMultipleImages(i.Type)))
|
||||
{
|
||||
if (options.GetImageLimit(image.Type) > 0)
|
||||
{
|
||||
@@ -735,7 +734,7 @@ namespace Emby.Server.Implementations.Dto
|
||||
}
|
||||
|
||||
var hash = image.Hash;
|
||||
if (hash != null && hash.Length > 0)
|
||||
if (!string.IsNullOrEmpty(hash))
|
||||
{
|
||||
dto.ImageHashes[tag] = image.Hash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user