Clean up UserDataManager

* enable nullable
* remove unused methods
* fix warnings and docs
This commit is contained in:
Bond_009
2024-08-30 15:08:56 +02:00
parent 9644e894f0
commit 277830855d
5 changed files with 56 additions and 100 deletions

View File

@@ -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
{