mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Fix wrong usage of ArgumentNullException.ThrowIfNull
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user