Fixed $null code styling comparison

This commit is contained in:
Lord Hepipud 2019-07-24 17:21:10 +02:00
parent 75a5c32589
commit d2b72d9496

View file

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