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:
copilot-swe-agent[bot] 2026-04-04 09:14:41 +00:00 committed by GitHub
parent 4ec8faef93
commit 89407c121f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,10 +71,9 @@ internal static class ConsoleExtensions
[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;
}
}
}