mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Use ArgumentException.ThrowIfNullOrEmpty
This commit is contained in:
@@ -294,10 +294,7 @@ namespace Jellyfin.Api.Controllers
|
||||
{
|
||||
var currentSession = await RequestHelpers.GetSession(_sessionManager, _userManager, HttpContext).ConfigureAwait(false);
|
||||
|
||||
if (command is null)
|
||||
{
|
||||
throw new ArgumentException("Request body may not be null");
|
||||
}
|
||||
ArgumentNullException.ThrowIfNull(command, "Request body may not be null");
|
||||
|
||||
command.ControllingUserId = currentSession.UserId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user