mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 09:06:35 -04:00
redundant condition
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
2122a81419
commit
70a229da50
1 changed files with 0 additions and 4 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue