From 359f7453c58046e8d1907f70ad7802fd2d2e0f28 Mon Sep 17 00:00:00 2001 From: Nate Ferrell Date: Fri, 1 May 2020 13:34:46 -0500 Subject: [PATCH] fixes #832 --- ImportExcel.psm1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ImportExcel.psm1 b/ImportExcel.psm1 index c5c96a5..8ea5180 100644 --- a/ImportExcel.psm1 +++ b/ImportExcel.psm1 @@ -7,8 +7,8 @@ if (-not $Strings) { try { [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") } catch { Write-Warning -Message $Strings.SystemDrawingAvailable } -foreach ($directory in @('Private', 'Public','Charting','InferData','Pivot')) { - Get-ChildItem -Path "$PSScriptRoot\$directory\*.ps1" | ForEach-Object {. $_.FullName} +foreach ($directory in @('Private', 'Public', 'Charting', 'InferData', 'Pivot')) { + Get-ChildItem -Path "$PSScriptRoot\$directory\*.ps1" | ForEach-Object { . $_.FullName } } if ($PSVersionTable.PSVersion.Major -ge 5) { @@ -53,8 +53,8 @@ brew install mono-libgdiplus "@ Write-Warning -Message $msg } - finally { - $ExcelPackage | Close-ExcelPackage -NoSave - } } -} \ No newline at end of file + finally { + $ExcelPackage | Close-ExcelPackage -NoSave + } +}