mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
Optimize Guid comparisons
* Use Guid.Equals(Guid) instead of the == override * Ban the usage of Guid.Equals(Object) to prevent accidental boxing * Compare to default(Guid) instead of Guid.Empty
This commit is contained in:
@@ -534,7 +534,7 @@ namespace Jellyfin.Api.Controllers
|
||||
public ActionResult<UserDto> GetCurrentUser()
|
||||
{
|
||||
var userId = ClaimHelpers.GetUserId(Request.HttpContext.User);
|
||||
if (userId == null)
|
||||
if (userId is null)
|
||||
{
|
||||
return BadRequest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user