mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-27 11:14:47 +03:00
Code Clean up: Convert to null-coalescing operator ?? (#5845)
Co-authored-by: Cody Robibero <cody@robibe.ro> Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
This commit is contained in:
@@ -1475,10 +1475,7 @@ namespace Emby.Server.Implementations.Session
|
||||
user = _userManager.GetUserById(request.UserId);
|
||||
}
|
||||
|
||||
if (user == null)
|
||||
{
|
||||
user = _userManager.GetUserByName(request.Username);
|
||||
}
|
||||
user ??= _userManager.GetUserByName(request.Username);
|
||||
|
||||
if (enforcePassword)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user