More warning fixes

This commit is contained in:
Bond_009
2019-08-29 22:28:33 +02:00
parent efaa668158
commit e4f893a0eb
21 changed files with 303 additions and 202 deletions

View File

@@ -886,8 +886,7 @@ namespace Emby.Server.Implementations.Dto
//}
}
var hasArtist = item as IHasArtist;
if (hasArtist != null)
if (item is IHasArtist hasArtist)
{
dto.Artists = hasArtist.Artists;