Prefer null checks over HasValue everywhere
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Emby.Server.Implementations.Sorting
|
||||
return x.PremiereDate.Value;
|
||||
}
|
||||
|
||||
if (x.ProductionYear.HasValue)
|
||||
if (x.ProductionYear is not null)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user