aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto/DtoService.cs
diff options
context:
space:
mode:
authorAnthony Lavado <anthonylavado@users.noreply.github.com>2019-09-02 02:07:19 -0400
committerGitHub <noreply@github.com>2019-09-02 02:07:19 -0400
commitcb393c215a2ea75f61d0e3e798c6a4a596d720c2 (patch)
tree1eb9586e139de7af8cc906ca4aa758e5106cb35d /Emby.Server.Implementations/Dto/DtoService.cs
parentc4eac8b3c6257e4a2aab2fa93d877fbcff8fee51 (diff)
parente4f893a0eb955d43e7ef4c99bef8d4bfeb61a771 (diff)
Merge pull request #1686 from Bond-009/warn7
More warning fixes
Diffstat (limited to 'Emby.Server.Implementations/Dto/DtoService.cs')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 97ddfff53..6da102618 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -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;