diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2024-02-07 12:22:36 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2024-02-07 12:24:57 -0100 |
commit | 70a229da50e3cf7fc324890ee4eccabf4bab281f (patch) | |
tree | eb78f87df10f2aa8bd4b43fd0e35ad085a1fd548 /lib/private/AppConfig.php | |
parent | 2122a814198d1f6343f38f12e5c41a6b6c58d6a4 (diff) | |
download | nextcloud-server-70a229da50e3cf7fc324890ee4eccabf4bab281f.tar.gz nextcloud-server-70a229da50e3cf7fc324890ee4eccabf4bab281f.zip |
redundant condition
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/AppConfig.php')
-rw-r--r-- | lib/private/AppConfig.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index f42dddf663d..deef96b1d41 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -844,10 +844,6 @@ class AppConfig implements IAppConfig { $this->loadConfigAll(); $lazy = $this->isLazy($app, $key); - if (!$this->hasKey($app, $key, $lazy)) { - throw new AppConfigUnknownKeyException('Unknown config key'); - } - // type can only be one type if (!in_array($type, [self::VALUE_MIXED, self::VALUE_STRING, self::VALUE_INT, self::VALUE_FLOAT, self::VALUE_BOOL, self::VALUE_ARRAY])) { throw new AppConfigIncorrectTypeException('Unknown value type'); |