diff options
| author | Brian Arnold <connect@brian-arnold.dev> | 2021-03-26 10:37:59 -0400 |
|---|---|---|
| committer | Brian C. Arnold <connect@brian-arnold.dev> | 2021-03-27 23:29:24 -0400 |
| commit | f114ba57dd24ed38786a478df7a641f81dd9d5c7 (patch) | |
| tree | 68b47e858d6c8c2da66855d8bb5f4ff620f51669 /Jellyfin.Api/Controllers/SessionController.cs | |
| parent | 81e3e5ca4883309b38377729e0bbd1b9f163ec7c (diff) | |
Fixed comment and code block runes to match coding
standards required by Jellyfin team.
Diffstat (limited to 'Jellyfin.Api/Controllers/SessionController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SessionController.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/SessionController.cs b/Jellyfin.Api/Controllers/SessionController.cs index ba68b4cbf..82aa32a7a 100644 --- a/Jellyfin.Api/Controllers/SessionController.cs +++ b/Jellyfin.Api/Controllers/SessionController.cs @@ -327,11 +327,13 @@ namespace Jellyfin.Api.Controllers { 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)) { throw new ArgumentNullException("Message Text may not be empty."); } + var nullCorrectedCommand = new MessageCommand { Header = string.IsNullOrWhiteSpace(command.Header) ? "Message from Server" : command.Header, |
