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.
This commit is contained in:
jhoneill
2017-10-24 09:17:32 +01:00
parent 890906ff10
commit efadf83b6b

View File

@@ -34,11 +34,11 @@ Function Close-ExcelPackage {
[parameter(Mandatory=$true, ValueFromPipeline=$true)] [parameter(Mandatory=$true, ValueFromPipeline=$true)]
[OfficeOpenXml.ExcelPackage]$ExcelPackage, [OfficeOpenXml.ExcelPackage]$ExcelPackage,
#Open the file #Open the file
[switch]$Show [switch]$Show,
#Abandon the file without saving #Abandon the file without saving
[Switch]$NoSave, [Switch]$NoSave,
#Save file with a new name (ignored if -NoSaveSpecified) #Save file with a new name (ignored if -NoSaveSpecified)
$SaveAs, $SaveAs
) )
if ( $NoSave) {$ExcelPackage.Dispose()} if ( $NoSave) {$ExcelPackage.Dispose()}
else { else {