2
0
Эх сурвалжийг харах

fix: remove unused null check

Co-authored-by: Cody Robibero <cody@robibe.ro>
Simon Eßlinger 4 жил өмнө
parent
commit
d10090b394

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

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