From 2a1ca4badc7fc5e3d778d2d8037afdc96f93948d Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Thu, 21 Apr 2022 11:11:25 +0100 Subject: [PATCH] Use already defined variable Co-authored-by: Claus Vium --- Emby.Server.Implementations/Dto/DtoService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs index 6ae4a41a35..09ba368514 100644 --- a/Emby.Server.Implementations/Dto/DtoService.cs +++ b/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 {