Replace == null with is null

This commit is contained in:
Bond_009
2022-12-05 15:00:20 +01:00
parent b2def4c9ea
commit c7d50d640e
206 changed files with 627 additions and 627 deletions

View File

@@ -16,15 +16,15 @@ namespace Jellyfin.Extensions
/// <returns>A signed integer that indicates the relative values of <c>x</c> and <c>y</c>.</returns>
public static int CompareValues(string? s1, string? s2)
{
if (s1 == null && s2 == null)
if (s1 is null && s2 is null)
{
return 0;
}
else if (s1 == null)
else if (s1 is null)
{
return -1;
}
else if (s2 == null)
else if (s2 is null)
{
return 1;
}