diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-07-22 08:09:33 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-07-22 08:09:33 +0200 |
| commit | 6382563440b69d816639abc2b4d03fca1d35eca2 (patch) | |
| tree | 21e102865fcfd24cb778dfe54e634a10b4e8d36f /Emby.Server.Implementations/Library | |
| parent | 733b4ba73a439aae2c2fe03c6084e2cbdfb22a39 (diff) | |
Prefer null checks over HasValue everywhere
Diffstat (limited to 'Emby.Server.Implementations/Library')
| -rw-r--r-- | Emby.Server.Implementations/Library/LibraryManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index 3691f4e19d..35c47ecb5c 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -3195,11 +3195,11 @@ namespace Emby.Server.Implementations.Library } } - if (!episode.ProductionYear.HasValue) + if (episode.ProductionYear is null) { episode.ProductionYear = episodeInfo.Year; - if (episode.ProductionYear.HasValue) + if (episode.ProductionYear is not null) { changed = true; } |
