mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
ConfigObject#get(): reduce code complexity
and save a few CPU cycles.
This commit is contained in:
parent
874af33d81
commit
2fcee6a073
@ -223,7 +223,7 @@ class ConfigObject extends ArrayDatasource implements Iterator, ArrayAccess
|
||||
return $this->data[$key];
|
||||
}
|
||||
|
||||
return $default !== null ? $default : null;
|
||||
return $default;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user