Browse Source

fix: remove unused null check

Co-authored-by: Cody Robibero <cody@robibe.ro>
Simon Eßlinger 4 years ago
parent
commit
d10090b394
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jellyfin.Api/Controllers/SessionController.cs

+ 1 - 1
Jellyfin.Api/Controllers/SessionController.cs

@@ -392,7 +392,7 @@ namespace Jellyfin.Api.Controllers
             _sessionManager.ReportCapabilities(id, new ClientCapabilities
             {
                 PlayableMediaTypes = RequestHelpers.Split(playableMediaTypes, ',', true),
-                SupportedCommands = supportedCommands == null ? Array.Empty<GeneralCommandType>() : supportedCommands,
+                SupportedCommands = supportedCommands,
                 SupportsMediaControl = supportsMediaControl,
                 SupportsSync = supportsSync,
                 SupportsPersistentIdentifier = supportsPersistentIdentifier