Răsfoiți Sursa

fix: remove unused null check

Co-authored-by: Cody Robibero <cody@robibe.ro>
Simon Eßlinger 4 ani în urmă
părinte
comite
d10090b394
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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