Skip to content

Commit

Permalink
Remove line by line handling of results
Browse files Browse the repository at this point in the history
  • Loading branch information
joaf123 committed Apr 18, 2024
1 parent 96b7f39 commit e7b95c5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,9 @@ internal class Operations {
using var reader = process!.StandardOutput;
process.EnableRaisingEvents = true;

var lineData = await reader.ReadToEndAsync();
var items = lineData.Split(new[] { Environment.NewLine });
StringBuilder builder = new();
foreach (var item in items) {
builder.AppendLine(item);
}
string STaskResults = await reader.ReadToEndAsync();

return (true, builder.ToString(), null)!;
return (true, STaskResults, null)!;
}
catch (Exception localException)
{
Expand Down

0 comments on commit e7b95c5

Please sign in to comment.