Browse Source

Use already defined variable

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Neil Burrows 3 năm trước cách đây
mục cha
commit
2a1ca4badc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Emby.Server.Implementations/Dto/DtoService.cs

+ 1 - 1
Emby.Server.Implementations/Dto/DtoService.cs

@@ -1094,7 +1094,7 @@ namespace Emby.Server.Implementations.Dto
             {
                 if (item is IHasTrailers hasTrailers)
                 {
-                    dto.LocalTrailerCount = (item as IHasTrailers).LocalTrailers.Count;
+                    dto.LocalTrailerCount = hasTrailers.LocalTrailers.Count;
                 }
                 else
                 {