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 /MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs | |
| parent | 733b4ba73a439aae2c2fe03c6084e2cbdfb22a39 (diff) | |
Prefer null checks over HasValue everywhere
Diffstat (limited to 'MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs')
| -rw-r--r-- | MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs index 989701350c..4d2f683a0e 100644 --- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs +++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs @@ -189,7 +189,7 @@ namespace MediaBrowser.MediaEncoding.Probing } // Guess ProductionYear from PremiereDate if missing - if (!info.ProductionYear.HasValue && info.PremiereDate.HasValue) + if (info.ProductionYear is null && info.PremiereDate is not null) { info.ProductionYear = info.PremiereDate.Value.Year; } |
