The Free Software Media System - Server Backend & API
Remove superfluous conditional
Joshua M. Boniface4b8f735cb899
diff --git a/Emby.Server.Implementations/Library/UserManager.cs b/Emby.Server.Implementations/Library/UserManager.csindex 4233ea8f44..16becbd526 100644--- a/Emby.Server.Implementations/Library/UserManager.cs+++ b/Emby.Server.Implementations/Library/UserManager.cs@@ -311,13 +311,10 @@ namespace Emby.Server.Implementations.Libraryuser = Users.FirstOrDefault(i => string.Equals(username, i.Name, StringComparison.OrdinalIgnoreCase));- if (authenticationProvider.GetType() != typeof(InvalidAuthProvider))+ if (authenticationProvider is IHasNewUserPolicy hasNewUserPolicy){- if (authenticationProvider is IHasNewUserPolicy hasNewUserPolicy)- {- var policy = hasNewUserPolicy.GetNewUserPolicy();- UpdateUserPolicy(user, policy, true);- }+ var policy = hasNewUserPolicy.GetNewUserPolicy();+ UpdateUserPolicy(user, policy, true);}}}