Use already defined variable

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
pull/7634/head
Neil Burrows 3 years ago committed by GitHub
parent 7f52f77ef5
commit 2a1ca4badc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save