cleanup per andschwa comment

This commit is contained in:
George Fleming
2016-03-01 15:33:29 -08:00
parent ab3203916b
commit 95cea5155b
@@ -499,21 +499,12 @@ namespace Microsoft.PowerShell.Linux.Host
/// </summary>
private void GetHistory(bool nested)
{
if (nested)
using (Pipeline pipeline = nested
? this.powershell.Runspace.CreateNestedPipeline("Get-History", true)
: this.powershell.Runspace.CreatePipeline("Get-History"))
{
using (Pipeline pipelineNested = this.powershell.Runspace.CreateNestedPipeline("Get-History", true))
{
historyResult = pipelineNested.Invoke();
}
historyResult = pipeline.Invoke();
}
else
{
using (Pipeline pipeline = this.powershell.Runspace.CreatePipeline("Get-History"))
{
historyResult = pipeline.Invoke();
}
}
}
/// <summary>