mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Fix warning: The nullable warning suppression expression is redundant (#2149)
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Jellyfin.Server.Implementations.Security
|
||||
{
|
||||
if (requestContext.Request.HttpContext.Items.TryGetValue("AuthorizationInfo", out var cached) && cached != null)
|
||||
{
|
||||
return Task.FromResult((AuthorizationInfo)cached!); // Cache should never contain null
|
||||
return Task.FromResult((AuthorizationInfo)cached); // Cache should never contain null
|
||||
}
|
||||
|
||||
return GetAuthorization(requestContext);
|
||||
|
||||
Reference in New Issue
Block a user