Fix warning: The nullable warning suppression expression is redundant (#2149)

This commit is contained in:
KonH
2021-10-03 10:43:05 +07:00
parent 531efc345a
commit 7c282ec369
13 changed files with 27 additions and 27 deletions

View File

@@ -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);