mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 05:18:27 +01:00
== null -> is null
This commit is contained in:
@@ -59,7 +59,7 @@ namespace Jellyfin.Extensions.Json.Converters
|
||||
var typedValueIndex = 0;
|
||||
for (var i = 0; i < stringEntries.Length; i++)
|
||||
{
|
||||
if (parsedValues[i] != null)
|
||||
if (parsedValues[i] is not null)
|
||||
{
|
||||
typedValues.SetValue(parsedValues[i], typedValueIndex);
|
||||
typedValueIndex++;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Jellyfin.Extensions
|
||||
public static IEnumerable<string> ReadAllLines(this TextReader reader)
|
||||
{
|
||||
string? line;
|
||||
while ((line = reader.ReadLine()) != null)
|
||||
while ((line = reader.ReadLine()) is not null)
|
||||
{
|
||||
yield return line;
|
||||
}
|
||||
@@ -54,7 +54,7 @@ namespace Jellyfin.Extensions
|
||||
public static async IAsyncEnumerable<string> ReadAllLinesAsync(this TextReader reader)
|
||||
{
|
||||
string? line;
|
||||
while ((line = await reader.ReadLineAsync().ConfigureAwait(false)) != null)
|
||||
while ((line = await reader.ReadLineAsync().ConfigureAwait(false)) is not null)
|
||||
{
|
||||
yield return line;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user