Skip to content

Commit a229a19

Browse files
authored
fix: discard null process output data (#1571)
1 parent 6ae8c7c commit a229a19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Commands/Command.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ private ProcessStartInfo CreateGitStartInfo(bool redirect)
204204

205205
private void HandleOutput(string line, List<string> errs)
206206
{
207-
line ??= string.Empty;
207+
if (line == null)
208+
return;
209+
208210
Log?.AppendLine(line);
209211

210212
// Lines to hide in error message.

0 commit comments

Comments
 (0)