Fixed $null code styling comparison

This commit is contained in:
Lord Hepipud 2019-07-24 17:21:10 +02:00
parent be38d4d0b4
commit 029ee6fbbb

View file

@ -13,7 +13,7 @@ function New-IcingaCheckresult()
$CheckResult | Add-Member -membertype NoteProperty -name 'noperfdata' -value $NoPerfData; $CheckResult | Add-Member -membertype NoteProperty -name 'noperfdata' -value $NoPerfData;
$CheckResult | Add-Member -membertype ScriptMethod -name 'Compile' -value { $CheckResult | Add-Member -membertype ScriptMethod -name 'Compile' -value {
if ($this.check -eq $null) { if ($null -eq $this.check) {
return $IcingaEnums.IcingaExitCode.Unknown; return $IcingaEnums.IcingaExitCode.Unknown;
} }