Explorar o código

Fix wrong usage of ArgumentNullException.ThrowIfNull

Bond_009 %!s(int64=2) %!d(string=hai) anos
pai
achega
e21f4adc16
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Jellyfin.Api/Controllers/SessionController.cs

+ 1 - 1
Jellyfin.Api/Controllers/SessionController.cs

@@ -294,7 +294,7 @@ namespace Jellyfin.Api.Controllers
         {
             var currentSession = await RequestHelpers.GetSession(_sessionManager, _userManager, HttpContext).ConfigureAwait(false);
 
-            ArgumentNullException.ThrowIfNull(command, "Request body may not be null");
+            ArgumentNullException.ThrowIfNull(command);
 
             command.ControllingUserId = currentSession.UserId;