We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55034a4 commit e14465cCopy full SHA for e14465c
1 file changed
Refresh-WingetConfiguration.ps1
@@ -41,7 +41,7 @@ function Get-ListToArray {
41
$List
42
)
43
44
- $parsedList = @();
+ [string[]]$parsedList = @();
45
46
ForEach ( $item in $list.PSObject.Properties | where { $_.Name -match "[0-9]+" } )
47
{
@@ -290,8 +290,8 @@ if ( Test-Path -Path $PolicyRegistryLocation ) {
290
291
Write-LogFile -InputObject "Configuration received from $PolicyRegistryLocation" -Severity 1;
292
if ( Test-Path -Path $PolicyListLocation ) {
293
- $list = Get-ItemProperty -Path $PolicyListLocation;
294
- $list = Get-ListToArray -List $list;
+ $registrylist = Get-ItemProperty -Path $PolicyListLocation;
+ [string[]]$list = Get-ListToArray -List $registrylist;
295
296
$listFileName = "excluded_apps.txt"
297
if ( $configuration.UseWhiteList ) {
0 commit comments