mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 10:43:30 +01:00
Enable more warnings as errors (#11288)
This commit is contained in:
@@ -668,12 +668,13 @@ namespace Emby.Server.Implementations.Dto
|
||||
{
|
||||
dto.ImageBlurHashes ??= new Dictionary<ImageType, Dictionary<string, string>>();
|
||||
|
||||
if (!dto.ImageBlurHashes.ContainsKey(image.Type))
|
||||
if (!dto.ImageBlurHashes.TryGetValue(image.Type, out var value))
|
||||
{
|
||||
dto.ImageBlurHashes[image.Type] = new Dictionary<string, string>();
|
||||
value = new Dictionary<string, string>();
|
||||
dto.ImageBlurHashes[image.Type] = value;
|
||||
}
|
||||
|
||||
dto.ImageBlurHashes[image.Type][tag] = image.BlurHash;
|
||||
value[tag] = image.BlurHash;
|
||||
}
|
||||
|
||||
return tag;
|
||||
|
||||
Reference in New Issue
Block a user