Use already defined variable
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
7f52f77ef5
commit
2a1ca4badc
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user