fix: count 0 bug

This commit is contained in:
fukusuket
2025-05-08 12:30:17 +09:00
parent 1171ebb472
commit 3ec6637c2d

View File

@@ -76,6 +76,9 @@
} }
$ruleCounts += "info: $([string]$count)" $ruleCounts += "info: $([string]$count)"
} else { } else {
if (-not $count) {
$count = 0 # 明示的に0を設定しないと空文字列に変換されるため
}
$ruleCounts += "$($level): $($count), " $ruleCounts += "$($level): $($count), "
} }
} }