mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 15:20:34 +02:00
Fixed comment and code block runes to match coding
standards required by Jellyfin team.
This commit is contained in:
parent
81e3e5ca48
commit
f114ba57dd
|
@ -327,11 +327,13 @@ namespace Jellyfin.Api.Controllers
|
||||||
{
|
{
|
||||||
throw new ArgumentException("Request body may not be null");
|
throw new ArgumentException("Request body may not be null");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Need to check if message.Text is null, since [Required] can't be applied to properties of a deserialized object.
|
// Need to check if message.Text is null, since [Required] can't be applied to properties of a deserialized object.
|
||||||
if (string.IsNullOrWhiteSpace(command.Text))
|
if (string.IsNullOrWhiteSpace(command.Text))
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException("Message Text may not be empty.");
|
throw new ArgumentNullException("Message Text may not be empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
var nullCorrectedCommand = new MessageCommand
|
var nullCorrectedCommand = new MessageCommand
|
||||||
{
|
{
|
||||||
Header = string.IsNullOrWhiteSpace(command.Header) ? "Message from Server" : command.Header,
|
Header = string.IsNullOrWhiteSpace(command.Header) ? "Message from Server" : command.Header,
|
||||||
|
|
Loading…
Reference in a new issue