aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2024-08-30 15:08:56 +0200
committerBond_009 <bond.009@outlook.com>2024-08-30 15:08:56 +0200
commit277830855ddd9c7fa5a5db21f02d2d2f199f6cf8 (patch)
tree6fb7660bd24e4a05892a0c34b2d906ad7c0296fd /Emby.Server.Implementations/EntryPoints
parent9644e894f0f6e1206f68a2b23aeb8065a565f9bf (diff)
Clean up UserDataManager
* enable nullable * remove unused methods * fix warnings and docs
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints')
-rw-r--r--Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
index 47f9dfbc8..aef02ce6b 100644
--- a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
+++ b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs
@@ -133,7 +133,8 @@ namespace Emby.Server.Implementations.EntryPoints
private UserDataChangeInfo GetUserDataChangeInfo(Guid userId, List<BaseItem> changedItems)
{
- var user = _userManager.GetUserById(userId);
+ var user = _userManager.GetUserById(userId)
+ ?? throw new ArgumentException("Invalid user ID", nameof(userId));
return new UserDataChangeInfo
{