mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixed $null code styling comparison
This commit is contained in:
parent
be38d4d0b4
commit
029ee6fbbb
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 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue