diff options
| author | Bond-009 <bond.009@outlook.com> | 2022-12-05 13:54:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-05 13:54:28 +0100 |
| commit | 210a4921f2bc96b8f87a9ac7c1a348fcee792329 (patch) | |
| tree | 0b41888134ba857a6338328c859c39d48409087e /Emby.Server.Implementations/LiveTv | |
| parent | bf3ff1584310ea260f27187867c0945c53a58e20 (diff) | |
Fix some warnings and only disable TreatWarningsAsErrors for CodeAnalysis (#8709)
Diffstat (limited to 'Emby.Server.Implementations/LiveTv')
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs b/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs index 82f0baf32e..264eec947a 100644 --- a/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs +++ b/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs @@ -243,7 +243,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings { Id = c.Id, Name = c.DisplayName, - ImageUrl = c.Icon != null && !string.IsNullOrEmpty(c.Icon.Source) ? c.Icon.Source : null, + ImageUrl = string.IsNullOrEmpty(c.Icon.Source) ? null : c.Icon.Source, Number = string.IsNullOrWhiteSpace(c.Number) ? c.Id : c.Number }).ToList(); } |
