From 685c96646849ddfebd47017345595a239a83b58d Mon Sep 17 00:00:00 2001 From: crobibero Date: Thu, 3 Dec 2020 14:35:18 -0700 Subject: [PATCH] Suggestion from review --- Jellyfin.Api/Controllers/DisplayPreferencesController.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs index 27b628774..e970524d3 100644 --- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs +++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs @@ -87,10 +87,7 @@ namespace Jellyfin.Api.Controllers { foreach (var (key, value) in customDisplayPreferences) { - if (!dto.CustomPrefs.ContainsKey(key)) - { - dto.CustomPrefs[key] = value; - } + dto.CustomPrefs.TryAdd(key, value); } }