Fix 'StringBuilder' initialization (#3458)

This commit is contained in:
Ilya
2017-03-31 09:31:11 -07:00
committed by Dongbo Wang
parent 7ceb1f6b84
commit 544e466e15
@@ -3937,7 +3937,8 @@ namespace System.Management.Automation.Runspaces
if (errors.Count > 0)
{
var allErrors = new StringBuilder('\n');
var allErrors = new StringBuilder();
allErrors.Append('\n');
foreach (string error in errors)
{
if (!string.IsNullOrEmpty(error))