From 2fcee6a073ff673474eeda700388e29ecc40a37e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Tue, 8 Feb 2022 13:30:33 +0100 Subject: [PATCH] ConfigObject#get(): reduce code complexity and save a few CPU cycles. --- library/Icinga/Data/ConfigObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Data/ConfigObject.php b/library/Icinga/Data/ConfigObject.php index 2ab5522ab..c9a313444 100644 --- a/library/Icinga/Data/ConfigObject.php +++ b/library/Icinga/Data/ConfigObject.php @@ -223,7 +223,7 @@ class ConfigObject extends ArrayDatasource implements Iterator, ArrayAccess return $this->data[$key]; } - return $default !== null ? $default : null; + return $default; } /**