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/Sorting/PremiereDateComparer.cs | |
| parent | 733b4ba73a439aae2c2fe03c6084e2cbdfb22a39 (diff) | |
Prefer null checks over HasValue everywhere
Diffstat (limited to 'Emby.Server.Implementations/Sorting/PremiereDateComparer.cs')
| -rw-r--r-- | Emby.Server.Implementations/Sorting/PremiereDateComparer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Sorting/PremiereDateComparer.cs b/Emby.Server.Implementations/Sorting/PremiereDateComparer.cs index 8c8b8824f3..30b268bb60 100644 --- a/Emby.Server.Implementations/Sorting/PremiereDateComparer.cs +++ b/Emby.Server.Implementations/Sorting/PremiereDateComparer.cs @@ -45,7 +45,7 @@ namespace Emby.Server.Implementations.Sorting return x.PremiereDate.Value; } - if (x.ProductionYear.HasValue) + if (x.ProductionYear is not null) { try { |
