From 875562e580a1f36d0364c04af22bfd9c7234ef95 Mon Sep 17 00:00:00 2001 From: Ryan Petris Date: Tue, 15 Dec 2020 22:17:04 -0700 Subject: [PATCH] This is only used in one place and therefore will always be HttpRequest. --- .../HttpServer/Security/SessionContext.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs b/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs index 049291f7f..040b6b9e4 100644 --- a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs +++ b/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs @@ -45,12 +45,7 @@ namespace Emby.Server.Implementations.HttpServer.Security public User GetUser(object requestContext) { - if (requestContext is HttpRequest request) - { - return GetUser(request.HttpContext); - } - - return GetUser((HttpContext)requestContext); + return GetUser(((HttpRequest)requestContext).HttpContext); } } }