diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-10-03 17:17:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-03 17:17:56 +0200 |
| commit | 9718c0b2eeb3ff2c2d0f613bfb51db6a025b0a07 (patch) | |
| tree | 998e25880a88c8f49b7ba490c5d00c9f19bfca67 /Jellyfin.Server.Implementations/Security/AuthorizationContext.cs | |
| parent | 6a575b3f77d2d1a304bb8b80e09d2b26b50bba5d (diff) | |
| parent | 6cbfdea4c018a88864f1c7aa8f5b2535a9952b31 (diff) | |
Merge pull request #6651 from KonH/fix_common_warnings
Diffstat (limited to 'Jellyfin.Server.Implementations/Security/AuthorizationContext.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Security/AuthorizationContext.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs b/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs index 244abf469..ba2cfc724 100644 --- a/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs +++ b/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs @@ -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); |
