Skip to content

Commit 234f2d3

Browse files
committed
del: Remove Optional Cleanup Steps
1 parent c8608a0 commit 234f2d3

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

scripts/Build-VBA.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,4 @@ try {
387387
Write-Host "Warning: Error releasing application COM object: $($_.Exception.Message)"
388388
}
389389

390-
# Force garbage collection to ensure COM objects are properly released
391-
[System.GC]::Collect()
392-
[System.GC]::WaitForPendingFinalizers()
393-
394-
# Clean up variables
395-
Remove-Variable -Name doc, officeApp -ErrorAction SilentlyContinue
396390
Write-Host "VBA import completed successfully."

scripts/Install-Rubberduck-VBA.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ $artifactUrl = "https://github.com/DecimalTurn/Rubberduck/releases/download/v2.5
237237
$artifactZipPath = "$env:TEMP\RubberduckArtifacts.zip"
238238
$rubberduckInstallDir = $rubberduckInstallPath # Use the path returned by Test-RubberduckInstalled
239239

240-
Write-Host "📥 Downloading artifacts from $artifactUrl..."
240+
Write-Host "📥 Downloading artifacts from $artifactUrl"
241241
Invoke-WebRequest -Uri $artifactUrl -OutFile $artifactZipPath
242242

243-
Write-Host "📦 Extracting artifacts to $rubberduckInstallDir..."
243+
Write-Host "📦 Extracting artifacts to $rubberduckInstallDir"
244244
Expand-Archive -Path $artifactZipPath -DestinationPath $rubberduckInstallDir -Force
245245

246246
Write-Host "🏁 Rubberduck installation and configuration completed."

0 commit comments

Comments
 (0)