diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-07-22 08:01:59 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-07-22 08:09:15 +0200 |
| commit | 733b4ba73a439aae2c2fe03c6084e2cbdfb22a39 (patch) | |
| tree | 75269417d4ba6dccaea94bc6fc7f6938ca598826 /MediaBrowser.Controller | |
| parent | ca1f7af4458feffa7b9800d536b536e544fc4b7c (diff) | |
Prefer null checks over HasValue
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index cc2a425a4d..41f7e796e8 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -1563,7 +1563,7 @@ namespace MediaBrowser.Controller.Entities // year/premiere date when the extra doesn't have one, so it stays consistent with the // media it belongs to. Setting it before the refresh means the media info provider // won't overwrite it from the file creation date. - if (!i.ProductionYear.HasValue && item.ProductionYear.HasValue) + if (i.ProductionYear is null && item.ProductionYear is not null) { i.ProductionYear = item.ProductionYear; i.PremiereDate ??= item.PremiereDate; |
