Prefer null checks over HasValue everywhere

This commit is contained in:
Shadowghost
2026-07-22 08:09:33 +02:00
parent 733b4ba73a
commit 6382563440
16 changed files with 21 additions and 21 deletions
@@ -730,7 +730,7 @@ namespace MediaBrowser.Controller.Entities
// Apply year filter
if (query.Years.Length > 0)
{
if (!(item.ProductionYear.HasValue && query.Years.Contains(item.ProductionYear.Value)))
if (item.ProductionYear is null || !query.Years.Contains(item.ProductionYear.Value))
{
return false;
}