mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
Removed no longer required variables from Check Package
This commit is contained in:
parent
9b46d63fd0
commit
da504cebe6
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue