Skip to content

Commit f180b62

Browse files
author
Robin Stolpe
committed
bug fix
1 parent 1a57bd5 commit f180b62

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MaintainModule/MaintainModule.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Function Uninstall-RSModule {
6666
else {
6767
Write-Verbose "User has added modules to the Module parameter, splitting them"
6868
$OldModule = $Module.Split(",").Trim()
69-
$Module = [System.Collections.Generic.List[string]]::new()
69+
[System.Collections.ArrayList]$Module = @()
7070

7171
Write-Verbose "Looking so the modules exists in the system..."
7272
foreach ($m in $OldModule) {
@@ -197,7 +197,7 @@ Function Update-RSModule {
197197
else {
198198
Write-Verbose "User has added modules to the Module parameter, splitting them"
199199
$OldModule = $Module.Split(",").Trim()
200-
$Module = [System.Collections.Generic.List[string]]::new()
200+
[System.Collections.ArrayList]$Module = @()
201201

202202
if ($InstallMissing -eq $false) {
203203
Write-Verbose "Looking so the modules exists in the system..."

0 commit comments

Comments
 (0)