mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Suggestion from review
This commit is contained in:
parent
b0c79edd2c
commit
685c966468
@ -87,10 +87,7 @@ namespace Jellyfin.Api.Controllers
|
|||||||
{
|
{
|
||||||
foreach (var (key, value) in customDisplayPreferences)
|
foreach (var (key, value) in customDisplayPreferences)
|
||||||
{
|
{
|
||||||
if (!dto.CustomPrefs.ContainsKey(key))
|
dto.CustomPrefs.TryAdd(key, value);
|
||||||
{
|
|
||||||
dto.CustomPrefs[key] = value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user