mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-04 03:23:05 -06: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:
parent
4ec8faef93
commit
89407c121f
|
|
@ -71,9 +71,8 @@ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue