mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
HostController: relax assertion
This commit is contained in:
parent
abbf580696
commit
8e60e0aab9
@ -604,11 +604,13 @@ class HostController extends ObjectController
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IcingaHost
|
||||
* @return ?IcingaHost
|
||||
*/
|
||||
protected function getHostObject()
|
||||
{
|
||||
assert($this->object instanceof IcingaHost);
|
||||
if ($this->object !== null) {
|
||||
assert($this->object instanceof IcingaHost);
|
||||
}
|
||||
return $this->object;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user