mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Prevent Export-CSV from flushing with every input (#20282)
Removed StreamWriter flush from process block, the stream is flushed in the End block.
This commit is contained in:
1 parent
6d23f72def
commit
8b1edaa496
1 file changed
-2
@@ -320,7 +320,6 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
string csv = _helper.ConvertPSObjectToCSV(InputObject, _propertyNames);
|
||||
WriteCsvLine(csv);
|
||||
_sw.Flush();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -422,7 +421,6 @@ namespace Microsoft.PowerShell.Commands
|
||||
{
|
||||
if (_sw != null)
|
||||
{
|
||||
_sw.Flush();
|
||||
_sw.Dispose();
|
||||
_sw = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user