浏览代码

Fix wrong usage of ArgumentNullException.ThrowIfNull

Bond_009 2 年之前
父节点
当前提交
e21f4adc16
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;