mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-05-18 14:55:08 +00:00
Add .ConfigureAwait(false) to ReadLinesAsync; remove IsNullOrWhiteSpace guard
Agent-Logs-Url: https://github.com/Tyrrrz/DiscordChatExporter/sessions/e94c999b-5241-4e2e-9af1-01f6be95e72c Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4ec8faef93
commit
89407c121f
@@ -71,10 +71,9 @@ internal static class ConsoleExtensions
|
|||||||
[EnumeratorCancellation] CancellationToken cancellationToken = default
|
[EnumeratorCancellation] CancellationToken cancellationToken = default
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
while (await reader.ReadLineAsync(cancellationToken) is { } line)
|
while (await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false) is { } line)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(line))
|
yield return line;
|
||||||
yield return line;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user