File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1412,7 +1412,7 @@ function Build-NotCheckedSectionHtml {
14121412 if ($items.Count -eq 0 ) { return ' ' }
14131413
14141414 $reasonCards = [System.Text.StringBuilder ]::new()
1415- $reasonCounts = New-Object System.Collections.Hashtable
1415+ $reasonCounts = @ {}
14161416 foreach ($item in $items ) {
14171417 if (-not $reasonCounts.ContainsKey ($item.Reason )) { $reasonCounts [$item.Reason ] = 0 }
14181418 $reasonCounts [$item.Reason ]++
@@ -1430,7 +1430,7 @@ function Build-NotCheckedSectionHtml {
14301430 }
14311431
14321432 $detailGroups = [System.Text.StringBuilder ]::new()
1433- $scopeGroups = New-Object System.Collections.Hashtable
1433+ $scopeGroups = @ {}
14341434 foreach ($item in $items ) {
14351435 if (-not $scopeGroups.ContainsKey ($item.Scope )) { $scopeGroups [$item.Scope ] = [System.Collections.Generic.List [PSCustomObject ]]::new() }
14361436 $scopeGroups [$item.Scope ].Add($item )
You can’t perform that action at this time.
0 commit comments