Skip to content

Commit da7c20c

Browse files
committed
Use output stream to read lines from.
1 parent 44d7cec commit da7c20c

File tree

1 file changed

+1
-3
lines changed
  • Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor

1 file changed

+1
-3
lines changed

Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/Git.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ public static string[] Branches()
5252

5353
var branches = new List<string>();
5454

55-
var stringReader = new StringReader(process?.StandardOutput.ReadToEnd());
56-
57-
while (stringReader.ReadLine() is string line)
55+
while (process?.StandardOutput.ReadLine() is string line)
5856
{
5957

6058
branches.Add(line.Trim('\''));

0 commit comments

Comments
 (0)