浏览代码

fix: remove unused null check

Co-authored-by: Cody Robibero <cody@robibe.ro>
Simon Eßlinger 4 年之前
父节点
当前提交
d10090b394
共有 1 个文件被更改,包括 1 次插入1 次删除
  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