This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/GitHub.Api/NewTaskSystem Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ class ProcessWrapper
56
56
private readonly Action onEnd ;
57
57
private readonly Action < Exception , string > onError ;
58
58
private readonly CancellationToken token ;
59
- private readonly List < string > errors = new List < string > ( ) ;
60
59
61
60
public Process Process { get ; }
62
61
public StreamWriter Input { get ; private set ; }
@@ -103,8 +102,9 @@ public void Run()
103
102
if ( Process . StartInfo . RedirectStandardInput )
104
103
Input = new StreamWriter ( Process . StandardInput . BaseStream , new UTF8Encoding ( false ) ) ;
105
104
106
- onStart ? . Invoke ( ) ;
105
+ var errors = new List < string > ( ) ;
107
106
107
+ onStart ? . Invoke ( ) ;
108
108
if ( Process . StartInfo . CreateNoWindow )
109
109
{
110
110
if ( Process . StartInfo . RedirectStandardOutput )
@@ -130,7 +130,7 @@ public void Run()
130
130
outputProcessor . LineReceived ( null ) ;
131
131
}
132
132
133
- if ( ! Process . StartInfo . RedirectStandardError )
133
+ if ( Process . StartInfo . RedirectStandardError )
134
134
{
135
135
var errorStream = Process . StandardError ;
136
136
var errorLine = errorStream . ReadLine ( ) ;
You can’t perform that action at this time.
0 commit comments