Use already defined variable

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Neil Burrows 2022-04-21 11:11:25 +01:00 committed by GitHub
parent 7f52f77ef5
commit 2a1ca4badc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
{