Explorar o código

Fixed comment and code block runes to match coding
standards required by Jellyfin team.

Brian Arnold %!s(int64=4) %!d(string=hai) anos
pai
achega
f114ba57dd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Jellyfin.Api/Controllers/SessionController.cs

+ 3 - 1
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,