mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-05-11 22:54:09 +00:00
Move Trim() from ReadLinesAsync to call site in ExportChannelsCommand
Agent-Logs-Url: https://github.com/Tyrrrz/DiscordChatExporter/sessions/6c8dcb73-6a93-428b-93e5-7bbfcfd2e252 Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cbf74ba6a8
commit
245b368396
@@ -73,8 +73,7 @@ internal static class ConsoleExtensions
|
||||
{
|
||||
while (await reader.ReadLineAsync(cancellationToken) is { } line)
|
||||
{
|
||||
line = line.Trim();
|
||||
if (!string.IsNullOrEmpty(line))
|
||||
if (!string.IsNullOrWhiteSpace(line))
|
||||
yield return line;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user