diff options
| author | crobibero <cody@robibe.ro> | 2020-12-03 14:35:18 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-12-03 14:35:18 -0700 |
| commit | 685c96646849ddfebd47017345595a239a83b58d (patch) | |
| tree | 51a97e4dd0308bc16e9a370c7954621a5e04a292 /Jellyfin.Api/Controllers/DisplayPreferencesController.cs | |
| parent | b0c79edd2c25f560208a40aedea05498d48ca80e (diff) | |
Suggestion from review
Diffstat (limited to 'Jellyfin.Api/Controllers/DisplayPreferencesController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DisplayPreferencesController.cs | 5 |
1 files changed, 1 insertions, 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); } } |
