Removed no longer required variables from Check Package

This commit is contained in:
Lord Hepipud 2019-07-24 13:02:03 +02:00
parent 54ef544b8a
commit dafc256ec4

View file

@ -289,11 +289,9 @@ function New-IcingaCheckPackage()
if ([int]$this.exitcode -eq [int]$IcingaEnums.IcingaExitCode.Unknown) {
return;
}
$worstCheck = $null;
foreach ($check in $this.checks) {
if ([int]$this.exitcode -lt $check.exitcode) {
$this.exitcode = $check.exitcode;
$worstCheck = $check;
}
}
}