Minor cleanup

This commit is contained in:
Bond_009
2022-08-12 20:37:31 +02:00
parent 63d943aab9
commit 5036afd691
12 changed files with 39 additions and 60 deletions

View File

@@ -89,12 +89,9 @@ namespace Jellyfin.Api.Controllers
// Load all custom display preferences
var customDisplayPreferences = _displayPreferencesManager.ListCustomItemDisplayPreferences(displayPreferences.UserId, itemId, displayPreferences.Client);
if (customDisplayPreferences != null)
foreach (var (key, value) in customDisplayPreferences)
{
foreach (var (key, value) in customDisplayPreferences)
{
dto.CustomPrefs.TryAdd(key, value);
}
dto.CustomPrefs.TryAdd(key, value);
}
// This will essentially be a noop if no changes have been made, but new prefs must be saved at least.