mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-10 05:13:49 +00:00
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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user