Skip to content

Commit

Permalink
Fix wrong usage of ArgumentNullException.ThrowIfNull
Browse files Browse the repository at this point in the history
  • Loading branch information
Bond-009 committed Dec 7, 2022
1 parent d35a1f2 commit e21f4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jellyfin.Api/Controllers/SessionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ await _sessionManager.SendGeneralCommand(currentSession.Id, sessionId, generalCo
{
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;

Expand Down

0 comments on commit e21f4ad

Please sign in to comment.