mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
== null -> is null
This commit is contained in:
@@ -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