Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 0edcad5

Browse files
Only change the result for process tasks that create a window
1 parent f441bbd commit 0edcad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.Api/NewTaskSystem/ProcessTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ protected override T RunWithReturn(bool success)
286286
if (outputProcessor != null)
287287
result = outputProcessor.Result;
288288

289-
if (result == null && typeof(T) == typeof(string))
290-
result = (T)(object)(Process.StartInfo.CreateNoWindow ? "Process finished" : "Process running");
289+
if (result == null && !Process.StartInfo.CreateNoWindow && typeof(T) == typeof(string))
290+
result = (T)(object)"Process running";
291291

292292
RaiseOnEnd(result);
293293

0 commit comments

Comments
 (0)