mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-22 18:23:45 +00:00
Replace == null with is null
This commit is contained in:
@@ -31,9 +31,9 @@ namespace Emby.Server.Implementations.Sorting
|
||||
var episode1 = x as Episode;
|
||||
var episode2 = y as Episode;
|
||||
|
||||
if (episode1 == null)
|
||||
if (episode1 is null)
|
||||
{
|
||||
if (episode2 == null)
|
||||
if (episode2 is null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -41,7 +41,7 @@ namespace Emby.Server.Implementations.Sorting
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (episode2 == null)
|
||||
if (episode2 is null)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace Emby.Server.Implementations.Sorting
|
||||
{
|
||||
var userdata = UserDataRepository.GetUserData(User, x);
|
||||
|
||||
return userdata == null ? 0 : userdata.PlayCount;
|
||||
return userdata is null ? 0 : userdata.PlayCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Emby.Server.Implementations.Sorting
|
||||
/// <returns>DateTime.</returns>
|
||||
private static DateTime GetDate(BaseItem? x)
|
||||
{
|
||||
if (x == null)
|
||||
if (x is null)
|
||||
{
|
||||
return DateTime.MinValue;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Emby.Server.Implementations.Sorting
|
||||
/// <returns>DateTime.</returns>
|
||||
private static int GetValue(BaseItem? x)
|
||||
{
|
||||
if (x == null)
|
||||
if (x is null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user