From dafc256ec45682b917307db567171f9b58b384ed Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 24 Jul 2019 13:02:03 +0200 Subject: [PATCH] Removed no longer required variables from Check Package --- lib/icinga/plugin/New-IcingaCheckPackage.psm1 | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 index b01c6f1..8d8428e 100644 --- a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 +++ b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 @@ -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; } } }