mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix 'StringBuilder' initialization (#3458)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user