diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-08-29 22:28:33 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-08-29 22:28:33 +0200 |
| commit | e4f893a0eb955d43e7ef4c99bef8d4bfeb61a771 (patch) | |
| tree | e60bc0fa8904b5463ac943e607bb919d08ed3e49 /Emby.Server.Implementations/Dto | |
| parent | efaa6681582de6a2ed8d19f40c015294db3d8993 (diff) | |
More warning fixes
Diffstat (limited to 'Emby.Server.Implementations/Dto')
| -rw-r--r-- | Emby.Server.Implementations/Dto/DtoService.cs | 3 |
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; |
