mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Fixed $null code styling comparison
This commit is contained in:
parent
75a5c32589
commit
d2b72d9496
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue