aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Sorting/ProductionYearComparer.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-07-22 08:09:33 +0200
committerShadowghost <Ghost_of_Stone@web.de>2026-07-22 08:09:33 +0200
commit6382563440b69d816639abc2b4d03fca1d35eca2 (patch)
tree21e102865fcfd24cb778dfe54e634a10b4e8d36f /Emby.Server.Implementations/Sorting/ProductionYearComparer.cs
parent733b4ba73a439aae2c2fe03c6084e2cbdfb22a39 (diff)
Prefer null checks over HasValue everywhere
Diffstat (limited to 'Emby.Server.Implementations/Sorting/ProductionYearComparer.cs')
-rw-r--r--Emby.Server.Implementations/Sorting/ProductionYearComparer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Sorting/ProductionYearComparer.cs b/Emby.Server.Implementations/Sorting/ProductionYearComparer.cs
index 9aec87f183..8774bd8d4f 100644
--- a/Emby.Server.Implementations/Sorting/ProductionYearComparer.cs
+++ b/Emby.Server.Implementations/Sorting/ProductionYearComparer.cs
@@ -39,7 +39,7 @@ namespace Emby.Server.Implementations.Sorting
return 0;
}
- if (x.ProductionYear.HasValue)
+ if (x.ProductionYear is not null)
{
return x.ProductionYear.Value;
}