fix: info count

This commit is contained in:
fukusuket
2025-04-13 22:03:49 +09:00
parent d6aa36fb9c
commit e9e0715bba

View File

@@ -71,7 +71,7 @@
foreach ($level in [WELA]::Levels) {
$count = $this.RulesCount[$level]
if ($level -eq "informational") {
$ruleCounts += "info:$($count)"
$ruleCounts += "info:$([string]$count)"
} else {
$ruleCounts += "$($level):$($count), "
}
@@ -1016,7 +1016,7 @@ function AuditLogSetting {
foreach ($level in [WELA]::Levels) {
$count = $_.RulesCount[$level]
if ($level -eq "informational") {
$ruleCounts += "info:$($count)"
$ruleCounts += "info:$([string]$count)"
} else {
$ruleCounts += "$($level):$($count), "
}
@@ -1034,7 +1034,7 @@ function AuditLogSetting {
foreach ($level in [WELA]::Levels) {
$count = $_.RulesCount[$level]
if ($level -eq "informational") {
$ruleCounts += "info:$($count)"
$ruleCounts += "info:$([string]$count)"
} else {
$ruleCounts += "$($level):$($count), "
}