From efadf83b6baad652b93c2360e61756d768a1fce3 Mon Sep 17 00:00:00 2001 From: jhoneill Date: Tue, 24 Oct 2017 09:17:32 +0100 Subject: [PATCH] Fixed a misplaced commas Param block in close was re-ordered leaving a parameter in the middle missing a comma and the parameter at the end had a comma it should not have done. --- Open-ExcelPackage.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ExcelPackage.ps1 b/Open-ExcelPackage.ps1 index a60a6f2..ccb4b3a 100644 --- a/Open-ExcelPackage.ps1 +++ b/Open-ExcelPackage.ps1 @@ -34,11 +34,11 @@ Function Close-ExcelPackage { [parameter(Mandatory=$true, ValueFromPipeline=$true)] [OfficeOpenXml.ExcelPackage]$ExcelPackage, #Open the file - [switch]$Show + [switch]$Show, #Abandon the file without saving [Switch]$NoSave, #Save file with a new name (ignored if -NoSaveSpecified) - $SaveAs, + $SaveAs ) if ( $NoSave) {$ExcelPackage.Dispose()} else {