From dba4768514d66b800a32978d691e41dcacada8a2 Mon Sep 17 00:00:00 2001 From: Attila Mihalicz Date: Thu, 7 Jul 2016 11:35:42 +0200 Subject: [PATCH] uninitialized variable leaks into the pipeline when -TableName parameter is used. --- Export-Excel.ps1 | 2 -- 1 file changed, 2 deletions(-) diff --git a/Export-Excel.ps1 b/Export-Excel.ps1 index ee31f1c..1dd1ec0 100644 --- a/Export-Excel.ps1 +++ b/Export-Excel.ps1 @@ -254,8 +254,6 @@ function Export-Excel { $tbl = $ws.Tables.Add($targetRange, $TableName) $tbl.TableStyle=$TableStyle - - $idx } if($IncludePivotTable) {